1 /* Project 16 Source Code~
\r
2 * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
\r
4 * This file is part of Project 16.
\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
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
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
23 #ifndef _SRC_LIB_16_DBG
\r
24 #define _SRC_LIB_16_DBG
\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
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
47 extern boolean dbg_debugmm;
\r
50 //#define __DEBUG_PM_MAIN__
\r
51 extern boolean dbg_debugpm;
\r
54 extern boolean dbg_debugca;
\r
56 #ifdef __DEBUG_InputMgr__
\r
57 extern boolean dbg_testkeyin,dbg_testcontrolnoisy,dbg_nointest,dbg_joymousedelta;
\r
59 #ifdef __DEBUG_MAP__
\r
60 extern boolean dbg_maptext;
\r
61 extern byte *dbg_mapdata;
\r
64 extern boolean dbg_pagenorendermap,dbg_pagedelayrendermap;
\r
66 #ifdef __DEBUG_SPRI__
\r
67 extern boolean dbg_delayanimation;
\r
79 # include <hw/8250/8250.h>
\r
81 void _DEBUGF(const char *fmt,...);
\r
82 void _DEBUG(const char *msg);
\r
85 static inline void _DEBUGF(const char *fmt,...) {
\r
88 static inline void _DEBUG(const char *msg) {
\r
92 static inline int _DEBUG_INIT() {
\r
99 void ShapeTest_(global_game_variables_t *gvar);
\r
101 #ifdef __DEBUG_VL__
\r
102 spv_t ShowPalVarSync (spv_t *spv);
\r
103 void ShowPalVal (global_game_variables_t *gvar);
\r
107 #endif // _SRC_LIB_16_DBG
\r