]> 4ch.mooo.com Git - 16.git/blobdiff - src/16.c
add printf-like _DEBUGF() function for debugging, too
[16.git] / src / 16.c
index 990a21150efd3f2bad5d6e792cf596cac4c206c0..e7cee886f159f81c341af0251da0967901c1faeb 100755 (executable)
--- a/src/16.c
+++ b/src/16.c
@@ -53,6 +53,14 @@ main(int argc, char *argv[])
                return;\r
        }\r
 \r
+       if (_DEBUG_INIT() == 0) {\r
+#ifdef DEBUGSERIAL\r
+               printf("WARNING: Failed to initialize DEBUG output\n");\r
+#endif\r
+       }\r
+       _DEBUG("Serial debug output started\n"); // NTS: All serial output must end messages with newline, or DOSBox-X will not emit text to log\r
+       _DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U);\r
+\r
        //screen = modexDefaultPage();\r
        engi_stat = ENGI_RUN;\r
        textInit();\r