X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_dbg.h;h=58c5a05a33b0f3ecb5f0b9f278dc6a2fa8c728f2;hb=24760854cf1668b8b0eba2bfaf63ab083da14ea8;hp=e408ac0ca84e8c3f52fa437bd47998ab71fc4260;hpb=e05e5231944441a76f4b7cf66b98e8c7b74b3db9;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..58c5a05a --- a/src/lib/16_dbg.h +++ b/src/lib/16_dbg.h @@ -1,21 +1,25 @@ - -#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 + +# 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 +