X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_dbg.h;h=58c5a05a33b0f3ecb5f0b9f278dc6a2fa8c728f2;hb=ff67fe588fddfa1c10cab13a5ca8dfaa4589bec7;hp=b8c39f6f647f47c6dffad34516a9d34d9fa913f6;hpb=9fae6d1ef0ebd44690958e072f400edde9262208;p=16.git diff --git a/src/lib/16_dbg.h b/src/lib/16_dbg.h old mode 100644 new mode 100755 index b8c39f6f..58c5a05a --- a/src/lib/16_dbg.h +++ b/src/lib/16_dbg.h @@ -1,17 +1,25 @@ - -#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 - + +#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 +