]> 4ch.mooo.com Git - 16.git/blobdiff - src/scroll.c
add printf-like _DEBUGF() function for debugging, too
[16.git] / src / scroll.c
index 688b91c80586b31b584dcb2371dd4b1e1a9171c1..8f8c27f514c90a91fbd582785df3eaef5fcbc2e0 100755 (executable)
@@ -85,6 +85,14 @@ void main(int argc, char *argv[])
                return;
        }
 
+       if (_DEBUG_INIT() == 0) {
+#ifdef DEBUGSERIAL
+               printf("WARNING: Failed to initialize DEBUG output\n");
+#endif
+       }
+       _DEBUG("Serial debug output started\n"); // NTS: All serial output must end messages with newline, or DOSBox-X will not emit text to log
+       _DEBUGF("Serial debug output printf test %u %u %u\n",1U,2U,3U);
+
        pan.pn=1;
        //player[0].data = &pp;