X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_dbg.h;h=1abc2bce5742dbed9e48252c9fcaddc22be0a960;hb=d26e0714368d1cfbe4caee5d6309cf97e0af55db;hp=9aaf9644c1757ef922bec2c51c10d536e9dd290a;hpb=c3cf8aaefd82b331a4da8e3fbfe4d96dd3804410;p=16.git diff --git a/src/lib/16_dbg.h b/src/lib/16_dbg.h index 9aaf9644..1abc2bce 100755 --- a/src/lib/16_dbg.h +++ b/src/lib/16_dbg.h @@ -1,25 +1,48 @@ - -#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_tdef.h" + +#define __DEBUG__ +#define __DEBUG_InputMgr__ +#define __DEBUG_MAP__ +//#define __DEBUG_PM__ +//#define __DEBUG_MM__ + + +#ifdef __DEBUG__ +#ifdef __DEBUG_PM__ +extern boolean dbg_debugpm; +#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 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 +