Mercurial > trustbridge
diff common/debug.h @ 188:a3bde2aaabd9
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 26 Mar 2014 09:12:10 +0100 |
parents | 7b9545ad76f6 |
children | 29467940b07b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common/debug.h Wed Mar 26 09:12:10 2014 +0100 @@ -0,0 +1,20 @@ +#ifndef DEBUG_H +#define DEBUG_H + +/** + * @file debug.h + * @brief Helper macros for debugging + */ + +/** + * @brief Debug printf + * + * Prints to stderr if RELEASE_BUILD is not defined. + */ +#ifndef RELEASE_BUILD +#define DEBUGFPRINT(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__); +#else +#define DEBUGFPRINT(fmt, ...) +#endif + +#endif