]> 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 #define __DEBUG_VL__\r
19 \r
20 \r
21 #ifdef __DEBUG__\r
22 #ifdef __DEBUG_MM__\r
23 extern boolean dbg_debugmm;\r
24 #endif\r
25 #ifdef __DEBUG_PM__\r
26 //#define __DEBUG_PM_MAIN__\r
27 extern boolean dbg_debugpm;\r
28 #endif\r
29 #ifdef __DEBUG_CA__\r
30 extern boolean dbg_debugca;\r
31 #endif\r
32 #ifdef __DEBUG_InputMgr__\r
33 extern boolean dbg_testkeyin,dbg_testcontrolnoisy,dbg_nointest;\r
34 #endif\r
35 #ifdef __DEBUG_MAP__\r
36 extern boolean dbg_maptext;\r
37 extern byte *dbg_mapdata;\r
38 #endif\r
39 #ifdef __DEBUG_RF__\r
40 extern boolean dbg_pagenorendermap,dbg_pagedelayrendermap;\r
41 #endif\r
42 #ifdef __DEBUG_SPRI__\r
43 extern boolean dbg_delayanimation;\r
44 #endif\r
45 #endif\r
46 \r
47 #ifdef __WATCOMC__\r
48 typedef struct\r
49 {\r
50         word    palq,mult;\r
51         word    palx, paly;\r
52         byte    i, oi;\r
53 } spv_t;\r
54 # ifdef DEBUGSERIAL\r
55 #  include <hw/8250/8250.h>\r
56 \r
57 void _DEBUGF(const char *fmt,...);\r
58 void _DEBUG(const char *msg);\r
59 int _DEBUG_INIT();\r
60 # else\r
61 static inline void _DEBUGF(const char *fmt,...) {\r
62         // NOTHING\r
63 }\r
64 static inline void _DEBUG(const char *msg) {\r
65         // NOTHING\r
66 }\r
67 \r
68 static inline int _DEBUG_INIT() {\r
69         // NOTHING\r
70         return -1;\r
71 }\r
72 # endif\r
73 #endif //watcomc\r
74 \r
75 void ShapeTest_(global_game_variables_t *gvar);\r
76 #ifdef __WATCOMC__\r
77 #ifdef __DEBUG_VL__\r
78 spv_t ShowPalVarSync (spv_t *spv);\r
79 void ShowPalVal (global_game_variables_t *gvar);\r
80 #endif\r
81 #endif\r
82 \r
83 #endif // _SRC_LIB_16_DBG\r