Tou
Tou header library
Loading...
Searching...
No Matches
Debug options

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()
 

Detailed Description

Macro Definition Documentation

◆ TOU_DEBUG

#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