]> 4ch.mooo.com Git - 16.git/blob - src/lib/16_dbg.h
Merge remote-tracking branch 'upstream/master'
[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 # ifdef DEBUGSERIAL\r
6 #  include <hw/8250/8250.h>\r
7 \r
8 void _DEBUGF(const char *fmt,...);\r
9 void _DEBUG(const char *msg);\r
10 int _DEBUG_INIT();\r
11 # else\r
12 static inline void _DEBUGF(const char *fmt,...) {\r
13         // NOTHING\r
14 }\r
15 static inline void _DEBUG(const char *msg) {\r
16         // NOTHING\r
17 }\r
18 \r
19 static inline int _DEBUG_INIT() {\r
20         // NOTHING\r
21         return -1;\r
22 }\r
23 # endif\r
24 #endif // _SRC_LIB_16_DBG\r
25 \r