]> 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 //#define __DEBUG_RF__\r
17 #define __DEBUG_SPRI__\r
18 \r
19 \r
20 #ifdef __DEBUG__\r
21 #ifdef __DEBUG_MM__\r
22 extern boolean dbg_debugmm;\r
23 #endif\r
24 #ifdef __DEBUG_PM__\r
25 extern boolean dbg_debugpm;\r
26 #endif\r
27 #ifdef __DEBUG_CA__\r
28 extern boolean dbg_debugca;\r
29 #endif\r
30 #ifdef __DEBUG_InputMgr__\r
31 extern boolean dbg_testkeyin,dbg_testcontrolnoisy,dbg_nointest;\r
32 #endif\r
33 #ifdef __DEBUG_MAP__\r
34 extern boolean dbg_maptext;\r
35 extern byte *dbg_mapdata;\r
36 #endif\r
37 #ifdef __DEBUG_RF__\r
38 extern boolean dbg_pagenorendermap,dbg_pagedelayrendermap;\r
39 #endif\r
40 #ifdef __DEBUG_SPRI__\r
41 extern boolean dbg_delayanimation;\r
42 #endif\r
43 #endif\r
44 \r
45 #ifdef __WATCOMC__\r
46 # ifdef DEBUGSERIAL\r
47 #  include <hw/8250/8250.h>\r
48 \r
49 void _DEBUGF(const char *fmt,...);\r
50 void _DEBUG(const char *msg);\r
51 int _DEBUG_INIT();\r
52 # else\r
53 static inline void _DEBUGF(const char *fmt,...) {\r
54         // NOTHING\r
55 }\r
56 static inline void _DEBUG(const char *msg) {\r
57         // NOTHING\r
58 }\r
59 \r
60 static inline int _DEBUG_INIT() {\r
61         // NOTHING\r
62         return -1;\r
63 }\r
64 # endif\r
65 #endif //watcomc\r
66 \r
67 void ShapeTest (global_game_variables_t *gvar);\r
68 \r
69 #endif // _SRC_LIB_16_DBG\r