]> 4ch.mooo.com Git - 16.git/blob - src/lib/16_dbg.h
in case where DEBUGSERIAL is not defined, make sure stubs compile
[16.git] / src / lib / 16_dbg.h
1
2 #ifndef _SRC_LIB_16_DBG
3 #define _SRC_LIB_16_DBG
4
5 # ifdef DEBUGSERIAL
6 #  include <hw/8250/8250.h>
7
8 void _DEBUG(const char *msg);
9 int _DEBUG_INIT();
10 # else
11 static inline void _DEBUG(const char *msg) {
12         // NOTHING
13 }
14
15 static inline int _DEBUG_INIT() {
16         // NOTHING
17         return -1;
18 }
19 # endif
20 #endif // _SRC_LIB_16_DBG
21