add a debug trace in console detection code on MS-Windows.
authorJean-Claude Beaudoin <jean.claude.beaudoin@gmail.com>
Sun, 13 Jan 2013 04:09:34 +0000 (23:09 -0500)
committerJean-Claude Beaudoin <jean.claude.beaudoin@gmail.com>
Sun, 13 Jan 2013 04:09:34 +0000 (23:09 -0500)
src/c/main.d

index 7f9096d..986f141 100644 (file)
@@ -1033,10 +1033,18 @@ void mkcl_get_commandline_args_from_Windows(int * argc_ref, char *** argv_ref)
     }
 }
 
-bool mkcl_has_console()
+bool mkcl_has_console(void)
 {
   HWND console_window = GetConsoleWindow();
 
+#if 0 /* debug JCB */
+  if (console_window != NULL)
+    /* printf("\nIn mkcl_has_console(void), found console.\n") */;
+  else
+    printf("\nIn mkcl_has_console(void), NO console!\n");
+  fflush(NULL);
+#endif
+
   return (console_window != NULL);
 }
 #endif /* MKCL_WINDOWS */