-#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
}
// NOTHING
return -1;
}
-#endif
+# endif
+#endif // _SRC_LIB_16_DBG