$search
#include "stdio.h"
Go to the source code of this file.
Defines | |
| #define | DEBUG1(...) |
| #define | DEBUG2(...) |
| #define | DEBUG3(...) |
| #define | DEBUG4(...) |
| #define | DEBUG_PRINTF(...) |
| #define | DEBUG_PRINTLINE(pre,...) |
| #define | PRINTF(...) |
| #define | TBD(...) DEBUG_PRINTLINE("TBD: ",__VA_ARGS__); |
| #define DEBUG_PRINTF | ( | ... | ) |
| #define DEBUG_PRINTLINE | ( | pre, | |||
| ... | ) |
{ \
DEBUG_PRINTF(pre ); \
DEBUG_PRINTF("%s:%d %s() ", \
__FILE__,__LINE__,__FUNCTION__); \
DEBUG_PRINTF( __VA_ARGS__ ); \
}
If the debug output should be pretty (a little nicer to read?), but this requires the allocation of some memory and the use of snprintf Prints file and line info.