]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_dbg.h
cleaned up the repo from debugging watcom2 ^^
[16.git] / src / lib / 16_dbg.h
old mode 100644 (file)
new mode 100755 (executable)
index b8c39f6..9aaf964
@@ -1,10 +1,17 @@
 
-#ifdef DEBUGSERIAL
-# include <hw/8250/8250.h>
+#ifndef _SRC_LIB_16_DBG
+#define _SRC_LIB_16_DBG
 
+# ifdef DEBUGSERIAL
+#  include <hw/8250/8250.h>
+
+void _DEBUGF(const char *fmt,...);
 void _DEBUG(const char *msg);
 int _DEBUG_INIT();
-#else
+# else
+static inline void _DEBUGF(const char *fmt,...) {
+       // NOTHING
+}
 static inline void _DEBUG(const char *msg) {
        // NOTHING
 }
@@ -13,5 +20,6 @@ static inline int _DEBUG_INIT() {
        // NOTHING
        return -1;
 }
-#endif
+# endif
+#endif // _SRC_LIB_16_DBG