21#include "os_detect.hpp"
23#if TT_OPERATING_SYSTEM == TT_OS_WINDOWS
24#include "application_win32.hpp"
25#define tt_application(...) tt::application_win32(__VA_ARGS__)
28#elif TT_OPERATING_SYSTEM == TT_OS_MACOS
29#include "application_macos.hpp"
30#define tt_application(...) tt::application_macos(__VA_ARGS__)
45#if TT_OPERATING_SYSTEM == TT_OS_WINDOWS
58 _In_ HINSTANCE hInstance,
59 [[maybe_unused]] _In_opt_ HINSTANCE hPrevInstance,
60 [[maybe_unused]] _In_ LPSTR lpCmdLine,
64 auto argv = CommandLineToArgvW(GetCommandLineW(), &argc);
74 for (
auto i = 0; i != argc; ++i) {
98int main(
int argc,
char **argv)
108 for (
int i = 0; i != argc; ++i) {
109 arguments.emplace_back(argv[i]);
int tt_main(std::vector< std::string > arguments, tt::os_handle instance)
Main entry-point.
int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nShowCmd)
Windows entry-point.
Definition crt.hpp:57