]> 4ch.mooo.com Git - 16.git/blob - src/lib/16_dbg.h
ok zcroll compiles and i should clean it w
[16.git] / src / lib / 16_dbg.h
1 \r
2 #ifndef _SRC_LIB_16_DBG\r
3 #define _SRC_LIB_16_DBG\r
4 \r
5 #define __DEBUG__\r
6 //#define __DEBUG_PM__\r
7 //#define __DEBUG_MM__\r
8 \r
9 # ifdef DEBUGSERIAL\r
10 #  include <hw/8250/8250.h>\r
11 \r
12 void _DEBUGF(const char *fmt,...);\r
13 void _DEBUG(const char *msg);\r
14 int _DEBUG_INIT();\r
15 # else\r
16 static inline void _DEBUGF(const char *fmt,...) {\r
17         // NOTHING\r
18 }\r
19 static inline void _DEBUG(const char *msg) {\r
20         // NOTHING\r
21 }\r
22 \r
23 static inline int _DEBUG_INIT() {\r
24         // NOTHING\r
25         return -1;\r
26 }\r
27 # endif\r
28 #endif // _SRC_LIB_16_DBG\r
29 \r