| 30 | #define USE_WIN32_CONSOLE |
| 31 | |
| 32 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) |
| 33 | { |
| 34 | UNREFERENCED_PARAMETER(hPrevInstance); |
| 35 | UNREFERENCED_PARAMETER(lpCmdLine); |
| 36 | |
| 37 | // create the application instance |
| 38 | #ifdef USE_WIN32_CONSOLE |
| 39 | AllocConsole(); |
| 40 | freopen("CONIN$", "r", stdin); |
| 41 | freopen("CONOUT$", "w", stdout); |
| 42 | freopen("CONOUT$", "w", stderr); |
| 43 | #endif |
| 44 | |
| 45 | // create the application instance |
| 46 | AppDelegate app; |
| 47 | int ret = Application::getInstance()->run(); |
| 48 | |
| 49 | #ifdef USE_WIN32_CONSOLE |
| 50 | FreeConsole(); |
| 51 | #endif |
| 52 | } |
nothing calls this directly
no outgoing calls
no test coverage detected