Sakura IoT Platform b
Fork of SakuraIO by
Diff: SakuraIO/debug.h
- Revision:
- 0:8d34375d954c
- Child:
- 3:c54a1eba22c4
diff -r 000000000000 -r 8d34375d954c SakuraIO/debug.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SakuraIO/debug.h Sat Nov 19 03:20:17 2016 +0000 @@ -0,0 +1,14 @@ +#ifndef __SAKURA_IO_DEBUG_H__ +#define __SAKURA_IO_DEBUG_H__ + + +#if defined(SAKURA_DEBUG) +#define dbg(...) printf(__VA_ARGS__) +#define dbgln(...) DEBUG_PRINTF_LN(__VA_ARGS__, "\r\n") +#define DEBUG_PRINTF_LN(type, fmt, ...) printf(fmt "%s", __VA_ARGS__) +#else +#define dbg(...) +#define dbgln(...) +#endif + +#endif //__SAKURA_IO_DEBUG_H__