diff options
Diffstat (limited to 'src/util_ct.h')
-rw-r--r-- | src/util_ct.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util_ct.h b/src/util_ct.h index 134ac57..cd21a12 100644 --- a/src/util_ct.h +++ b/src/util_ct.h @@ -13,3 +13,11 @@ #if !defined(memzero) #define memzero(addr, len) memset(addr, 0, len) #endif + +#ifdef PRNE_DEBUG +#define prne_dbgpf(...) fprintf(stderr, __VA_ARGS__) +#define prne_dbgperr(str) perror(str) +#else +#define prne_dbgpf(fmt, ...) +#define prne_dbgperr(str) +#endif |