Explorar o código

Windows DEBUG builds write output to a console window

bel %!s(int64=8) %!d(string=hai) anos
pai
achega
5b2415206f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;