Selaa lähdekoodia

Windows DEBUG builds write output to a console window

bel 8 vuotta sitten
vanhempi
commit
5b2415206f
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      src/main.c

+ 4 - 0
src/main.c

@@ -2399,6 +2399,10 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR cmdline, int show)
 	HWND hWnd;
 	MSG msg;
 
+#if defined(DEBUG)
+	(void)MakeConsole();
+#endif
+
 	(void)hInst;
 	(void)hPrev;
 	(void)cmdline;