X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_dbg.h;h=3be65fa663c79cf67a3096c155a8a27a401df8f3;hb=52fab2ff9ef6a39ed9303b0df1ce0ad9c9180ef1;hp=9aaf9644c1757ef922bec2c51c10d536e9dd290a;hpb=c3cf8aaefd82b331a4da8e3fbfe4d96dd3804410;p=16.git diff --git a/src/lib/16_dbg.h b/src/lib/16_dbg.h index 9aaf9644..3be65fa6 100755 --- a/src/lib/16_dbg.h +++ b/src/lib/16_dbg.h @@ -1,25 +1,61 @@ - -#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__ + + +#ifdef __DEBUG__ +#ifdef __DEBUG_MM__ +extern boolean dbg_debugmm; +#endif +#ifdef __DEBUG_PM__ +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 +#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