|
Tou
Tou header library
|
Macros | |
| #define | TOU_GET_VERSION() (20240819L) |
| A unique tou.h version identifier. | |
| #define | TOU_DBG 0 |
| Control library debug output & debug code blocks. | |
| #define | TOU_DEBUG(...) if (TOU_DBG) { __VA_ARGS__; } else (void)0 |
| Place a block of code inside that you wish to enable if debugging. | |
| #define | TOU_DEBUG_PREFIX "[:] " |
| Debug prefix before messages used in PRINTD() | |
| #define | TOU_PRINTD(format, ...) if (TOU_DBG) { fprintf(stdout, TOU_DEBUG_PREFIX format, ##__VA_ARGS__); } else (void)0 |
| Debug print, used like printf() | |
| #define TOU_DEBUG | ( | ... | ) | if (TOU_DBG) { __VA_ARGS__; } else (void)0 |
Place a block of code inside that you wish to enable if debugging.
It's not a #define but should get optimized