Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
appentry.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
19
#include "
core/types.h
"
20
#include "
util/commandlineargs.h
"
21
22
//------------------------------------------------------------------------------
23
#if __WIN32__
24
#define ImplementNebulaApplication() \
25
void NebulaMain(const Util::CommandLineArgs& args); \
26
int 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() \
34
void NebulaMain(const Util::CommandLineArgs& args); \
35
int __cdecl main(int argc, const char** argv) \
36
{ \
37
Util::CommandLineArgs args(argc, argv); \
38
NebulaMain(args); \
39
return 0; \
40
}
41
#endif
42
//------------------------------------------------------------------------------
commandlineargs.h
types.h
code
foundation
system
appentry.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.