]> 4ch.mooo.com Git - 16.git/blob - src/lib/16_dbg.h
scroll.exe works again but the fps thingy dose not work because of MM
[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 #include "src/lib/16_head.h"\r
6 #include "src/lib/16_tdef.h"\r
7 \r
8 #define __DEBUG__\r
9 #define __DEBUG_InputMgr__\r
10 //#define __DEBUG_PM__\r
11 //#define __DEBUG_MM__\r
12 \r
13 \r
14 #ifdef __DEBUG__\r
15 #ifdef __DEBUG_PM__\r
16 extern boolean dbg_debugpm;\r
17 #endif\r
18 #ifdef __DEBUG_InputMgr__\r
19 extern boolean dbg_testkeyin,dbg_testcontrolnoisy,dbg_noplayerinpu;\r
20 #endif\r
21 extern boolean dbg_nommpmca;\r
22 #endif\r
23 \r
24 # ifdef DEBUGSERIAL\r
25 #  include <hw/8250/8250.h>\r
26 \r
27 void _DEBUGF(const char *fmt,...);\r
28 void _DEBUG(const char *msg);\r
29 int _DEBUG_INIT();\r
30 # else\r
31 static inline void _DEBUGF(const char *fmt,...) {\r
32         // NOTHING\r
33 }\r
34 static inline void _DEBUG(const char *msg) {\r
35         // NOTHING\r
36 }\r
37 \r
38 static inline int _DEBUG_INIT() {\r
39         // NOTHING\r
40         return -1;\r
41 }\r
42 # endif\r
43 #endif // _SRC_LIB_16_DBG\r
44 \r