OSDN Git Service

updated copyright. i am not dead just busy. i am working more on wolfenstien 3d and...
[proj16/16.git] / src / lib / 16_dbg.h
1 /* Project 16 Source Code~\r
2  * Copyright (C) 2012-2020 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
3  *\r
4  * This file is part of Project 16.\r
5  *\r
6  * Project 16 is free software; you can redistribute it and/or modify\r
7  * it under the terms of the GNU General Public License as published by\r
8  * the Free Software Foundation; either version 3 of the License, or\r
9  * (at your option) any later version.\r
10  *\r
11  * Project 16 is distributed in the hope that it will be useful,\r
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14  * GNU General Public License for more details.\r
15  *\r
16  * You should have received a copy of the GNU General Public License\r
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
18  * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
19  * Fifth Floor, Boston, MA 02110-1301 USA.\r
20  *\r
21  */\r
22 \r
23 #ifndef _SRC_LIB_16_DBG\r
24 #define _SRC_LIB_16_DBG\r
25 \r
26 //#include "src/lib/16_head.h"\r
27 #include "src/lib/16_pm.h"\r
28 //#include "src/lib/16_tdef.h"\r
29 \r
30 #define __DEBUG__\r
31 \r
32 #ifdef __DEBUG__\r
33 #define __DEBUG_InputMgr__\r
34 #define __DEBUG_MAP__\r
35 //#define __DEBUG_2__\r
36 //#define __DEBUG_CA__\r
37 //#define __DEBUG_PM__\r
38 //#define __DEBUG_MM__\r
39 #define __DEBUG_RF__\r
40 #define __DEBUG_SPRI__\r
41 #define __DEBUG_VL__\r
42 #endif\r
43 \r
44 \r
45 #ifdef __DEBUG__\r
46 #ifdef __DEBUG_MM__\r
47 extern boolean dbg_debugmm;\r
48 #endif\r
49 #ifdef __DEBUG_PM__\r
50 //#define __DEBUG_PM_MAIN__\r
51 extern boolean dbg_debugpm;\r
52 #endif\r
53 #ifdef __DEBUG_CA__\r
54 extern boolean dbg_debugca;\r
55 #endif\r
56 #ifdef __DEBUG_InputMgr__\r
57 extern boolean dbg_testkeyin,dbg_testcontrolnoisy,dbg_nointest,dbg_joymousedelta;\r
58 #endif\r
59 #ifdef __DEBUG_MAP__\r
60 extern boolean dbg_maptext;\r
61 extern byte *dbg_mapdata;\r
62 #endif\r
63 #ifdef __DEBUG_RF__\r
64 extern boolean dbg_pagenorendermap,dbg_pagedelayrendermap;\r
65 #endif\r
66 #ifdef __DEBUG_SPRI__\r
67 extern boolean dbg_delayanimation;\r
68 #endif\r
69 #endif\r
70 \r
71 #ifdef __WATCOMC__\r
72 typedef struct\r
73 {\r
74         word    palq,mult;\r
75         word    palx, paly;\r
76         byte    i, oi;\r
77 } spv_t;\r
78 # ifdef DEBUGSERIAL\r
79 #  include <hw/8250/8250.h>\r
80 \r
81 void _DEBUGF(const char *fmt,...);\r
82 void _DEBUG(const char *msg);\r
83 int _DEBUG_INIT();\r
84 # else\r
85 static inline void _DEBUGF(const char *fmt,...) {\r
86         // NOTHING\r
87 }\r
88 static inline void _DEBUG(const char *msg) {\r
89         // NOTHING\r
90 }\r
91 \r
92 static inline int _DEBUG_INIT() {\r
93         // NOTHING\r
94         return -1;\r
95 }\r
96 # endif\r
97 #endif //watcomc\r
98 \r
99 void ShapeTest_(global_game_variables_t *gvar);\r
100 #ifdef __WATCOMC__\r
101 #ifdef __DEBUG_VL__\r
102 spv_t ShowPalVarSync (spv_t *spv);\r
103 void ShowPalVal (global_game_variables_t *gvar);\r
104 #endif\r
105 #endif\r
106 \r
107 #endif // _SRC_LIB_16_DBG\r