Nebula
Loading...
Searching...
No Matches
appentry.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
19#include "core/types.h"
21
22//------------------------------------------------------------------------------
23#if __WIN32__
24#define ImplementNebulaApplication() \
25void NebulaMain(const Util::CommandLineArgs& args); \
26int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine, int nShowCmd) \
27{ \
28 Util::CommandLineArgs args(lpCmdLine); \
29 NebulaMain(args); \
30 return 0; \
31}
32#else
33#define ImplementNebulaApplication() \
34void NebulaMain(const Util::CommandLineArgs& args); \
35int __cdecl main(int argc, const char** argv) \
36{ \
37 Util::CommandLineArgs args(argc, argv); \
38 NebulaMain(args); \
39 return 0; \
40}
41#endif
42//------------------------------------------------------------------------------