X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_dbg.h;h=06c3fccf07f87b9e061914129fcdcc3f02f904ec;hb=25753e20d43e1ebedfc22ec9e94e6c88b4324c7b;hp=e408ac0ca84e8c3f52fa437bd47998ab71fc4260;hpb=dd532df1ba5c28f9efe78c512052563086381e9b;p=16.git diff --git a/src/lib/16_dbg.h b/src/lib/16_dbg.h old mode 100644 new mode 100755 index e408ac0c..06c3fccf --- a/src/lib/16_dbg.h +++ b/src/lib/16_dbg.h @@ -1,21 +1,43 @@ - -#ifndef _SRC_LIB_16_DBG -#define _SRC_LIB_16_DBG - -# 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 -#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_PM__ +//#define __DEBUG_MM__ + + +#ifdef __DEBUG__ +#ifdef __DEBUG_PM__ +extern boolean dbg_debugpm; +#endif +#ifdef __DEBUG_InputMgr__ +extern boolean dbg_testkeyin,dbg_testcontrolnoisy; +#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 +