X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_dbg.h;h=58c5a05a33b0f3ecb5f0b9f278dc6a2fa8c728f2;hb=4423bda56aab2192f037bec035a3412153b2b3a7;hp=9aaf9644c1757ef922bec2c51c10d536e9dd290a;hpb=8cdd69d75d0d1f2b820dc4fa0ebf8892ab70f03d;p=16.git diff --git a/src/lib/16_dbg.h b/src/lib/16_dbg.h index 9aaf9644..58c5a05a 100755 --- 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 +