Sakura IoT Platform b

Fork of SakuraIO by SAKURA Internet

SakuraIO/debug.h

Committer:
sakurafan
Date:
2016-11-21
Revision:
4:85955eb2e61a
Parent:
0:8d34375d954c
Child:
3:c54a1eba22c4

File content as of revision 4:85955eb2e61a:

#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__