comparison common/debug.h @ 228:19de529ce7fb

Moved debug prefix to macro and added component specific prefix.
author Sascha Wilde <wilde@intevation.de>
date Thu, 27 Mar 2014 18:31:26 +0100
parents 29467940b07b
children 92b1e5ed2d5f
comparison
equal deleted inserted replaced
227:29467940b07b 228:19de529ce7fb
10 * @brief Debug printf 10 * @brief Debug printf
11 * 11 *
12 * Prints to stderr if RELEASE_BUILD is not defined. 12 * Prints to stderr if RELEASE_BUILD is not defined.
13 */ 13 */
14 #ifndef RELEASE_BUILD 14 #ifndef RELEASE_BUILD
15 #define DEBUGPRINTF(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__); 15 #define DEBUGPRINTF(fmt, ...) fprintf(stderr, DEBUGPREFIX "DEBUG: " fmt, ##__VA_ARGS__);
16 #else 16 #else
17 #define DEBUGPRINTF(fmt, ...) 17 #define DEBUGPRINTF(fmt, ...)
18 #endif 18 #endif
19 19
20 #endif 20 #endif

http://wald.intevation.org/projects/trustbridge/