]> 4ch.mooo.com Git - 16.git/blob - src/lib/16_dbg.h
==== bcexmm.exe works again! yay! ==== wwww
[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_MAP__\r
11 //#define __DEBUG_CA__\r
12 //#define __DEBUG_PM__\r
13 //#define __DEBUG_MM__\r
14 \r
15 \r
16 #ifdef __DEBUG__\r
17 #ifdef __DEBUG_MM__\r
18 extern boolean dbg_debugmm;\r
19 #endif\r
20 #ifdef __DEBUG_PM__\r
21 extern boolean dbg_debugpm;\r
22 #endif\r
23 #ifdef __DEBUG_CA__\r
24 extern boolean dbg_debugca;\r
25 #endif\r
26 #ifdef __DEBUG_InputMgr__\r
27 extern boolean dbg_testkeyin,dbg_testcontrolnoisy,dbg_nointest;\r
28 #endif\r
29 #ifdef __DEBUG_MAP__\r
30 extern boolean dbg_maptext;\r
31 extern byte *dbg_mapdata;\r
32 #endif\r
33 #endif\r
34 \r
35 #ifdef __WATCOMC__\r
36 # ifdef DEBUGSERIAL\r
37 #  include <hw/8250/8250.h>\r
38 \r
39 void _DEBUGF(const char *fmt,...);\r
40 void _DEBUG(const char *msg);\r
41 int _DEBUG_INIT();\r
42 # else\r
43 static inline void _DEBUGF(const char *fmt,...) {\r
44         // NOTHING\r
45 }\r
46 static inline void _DEBUG(const char *msg) {\r
47         // NOTHING\r
48 }\r
49 \r
50 static inline int _DEBUG_INIT() {\r
51         // NOTHING\r
52         return -1;\r
53 }\r
54 # endif\r
55 #endif //watcomc\r
56 #endif // _SRC_LIB_16_DBG\r