 |
Plasma Engine
2.0
|
Loading...
Searching...
No Matches
8#define PL_CONSOLEAPP_ENTRY_POINT PL_APPLICATION_ENTRY_POINT
15#define PL_APPLICATION_ENTRY_POINT(AppClass, ...) \
16 alignas(PL_ALIGNMENT_OF(AppClass)) static char appBuffer[sizeof(AppClass)]; \
18 PL_APPLICATION_ENTRY_POINT_CODE_INJECTION \
19 int main(int argc, const char** argv) \
22 AppClass* pApp = new (appBuffer) AppClass(__VA_ARGS__); \
23 pApp->SetCommandLineArguments((plUInt32)argc, argv); \
25 const int iReturnCode = pApp->GetReturnCode(); \
26 if (iReturnCode != 0) \
28 const char* szReturnCode = pApp->TranslateReturnCode(); \
29 if (szReturnCode != nullptr && szReturnCode[0] != '\0') \
30 plLog::Printf("Return Code: '%s'\n", szReturnCode); \
33 memset((void*)pApp, 0, sizeof(AppClass)); \