X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=blobdiff_plain;f=src%2Flib%2F16_dbg.h;h=295b7146b9d96abea20ad1a38d0905dd19b5f36d;hp=9aaf9644c1757ef922bec2c51c10d536e9dd290a;hb=050d28da3358d5c1434fda542ec11adbee182ea5;hpb=631d2bde47de81ead5300f7aca378447387f254c diff --git a/src/lib/16_dbg.h b/src/lib/16_dbg.h index 9aaf9644..295b7146 100755 --- a/src/lib/16_dbg.h +++ b/src/lib/16_dbg.h @@ -1,25 +1,70 @@ - -#ifndef _SRC_LIB_16_DBG -#define _SRC_LIB_16_DBG - -# 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 // _SRC_LIB_16_DBG - + +#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