X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_dbg.h;h=9aaf9644c1757ef922bec2c51c10d536e9dd290a;hb=e66bba2d025d815517aec1227214b264209e539d;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..9aaf9644 --- a/src/lib/16_dbg.h +++ b/src/lib/16_dbg.h @@ -1,10 +1,17 @@ -#ifdef DEBUGSERIAL -# include +#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 +# else +static inline void _DEBUGF(const char *fmt,...) { + // NOTHING +} static inline void _DEBUG(const char *msg) { // NOTHING } @@ -13,5 +20,6 @@ static inline int _DEBUG_INIT() { // NOTHING return -1; } -#endif +# endif +#endif // _SRC_LIB_16_DBG