]> 4ch.mooo.com Git - 16.git/blob - src/lib/16_dbg.h
shapetest ported and i have no idea what it dose
[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 void ShapeTest (global_game_variables_t *gvar);\r
37 \r
38 #ifdef __WATCOMC__\r
39 # ifdef DEBUGSERIAL\r
40 #  include <hw/8250/8250.h>\r
41 \r
42 void _DEBUGF(const char *fmt,...);\r
43 void _DEBUG(const char *msg);\r
44 int _DEBUG_INIT();\r
45 # else\r
46 static inline void _DEBUGF(const char *fmt,...) {\r
47         // NOTHING\r
48 }\r
49 static inline void _DEBUG(const char *msg) {\r
50         // NOTHING\r
51 }\r
52 \r
53 static inline int _DEBUG_INIT() {\r
54         // NOTHING\r
55         return -1;\r
56 }\r
57 # endif\r
58 #endif //watcomc\r
59 #endif // _SRC_LIB_16_DBG\r