Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SakuraIO by
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__
            
    