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