X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=blobdiff_plain;f=src%2Flib%2F16_dbg.h;h=295b7146b9d96abea20ad1a38d0905dd19b5f36d;hp=b8c39f6f647f47c6dffad34516a9d34d9fa913f6;hb=050d28da3358d5c1434fda542ec11adbee182ea5;hpb=9fae6d1ef0ebd44690958e072f400edde9262208 diff --git a/src/lib/16_dbg.h b/src/lib/16_dbg.h old mode 100644 new mode 100755 index b8c39f6f..295b7146 --- a/src/lib/16_dbg.h +++ b/src/lib/16_dbg.h @@ -1,17 +1,70 @@ - -#ifdef DEBUGSERIAL -# include - -void _DEBUG(const char *msg); -int _DEBUG_INIT(); -#else -static inline void _DEBUG(const char *msg) { - // NOTHING -} - -static inline int _DEBUG_INIT() { - // NOTHING - return -1; -} -#endif - + +#ifndef _SRC_LIB_16_DBG +#define _SRC_LIB_16_DBG + +#include "src/lib/16_head.h" +#include "src/lib/16_pm.h" +#include "src/lib/16_tdef.h" + +#define __DEBUG__ +//#define __DEBUG_InputMgr__ +#define __DEBUG_MAP__ +//#define __DEBUG_2__ +//#define __DEBUG_CA__ +//#define __DEBUG_PM__ +//#define __DEBUG_MM__ +//#define __DEBUG_RF__ +#define __DEBUG_SPRI__ + + +#ifdef __DEBUG__ +#ifdef __DEBUG_MM__ +extern boolean dbg_debugmm; +#endif +#ifdef __DEBUG_PM__ +//#define __DEBUG_PM_MAIN__ +extern boolean dbg_debugpm; +#endif +#ifdef __DEBUG_CA__ +extern boolean dbg_debugca; +#endif +#ifdef __DEBUG_InputMgr__ +extern boolean dbg_testkeyin,dbg_testcontrolnoisy,dbg_nointest; +#endif +#ifdef __DEBUG_MAP__ +extern boolean dbg_maptext; +extern byte *dbg_mapdata; +#endif +#ifdef __DEBUG_RF__ +extern boolean dbg_pagenorendermap,dbg_pagedelayrendermap; +#endif +#ifdef __DEBUG_SPRI__ +extern boolean dbg_delayanimation; +#endif +#endif + +#ifdef __WATCOMC__ +# ifdef DEBUGSERIAL +# include + +void _DEBUGF(const char *fmt,...); +void _DEBUG(const char *msg); +int _DEBUG_INIT(); +# else +static inline void _DEBUGF(const char *fmt,...) { + // NOTHING +} +static inline void _DEBUG(const char *msg) { + // NOTHING +} + +static inline int _DEBUG_INIT() { + // NOTHING + return -1; +} +# endif +#endif //watcomc + +void ShapeTest_(global_game_variables_t *gvar); + +#endif // _SRC_LIB_16_DBG