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