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