comparison common/debug.h @ 172:7b9545ad76f6

Added include file with debugging macros.
author Sascha Wilde <wilde@intevation.de>
date Tue, 25 Mar 2014 15:20:06 +0100
parents
children 29467940b07b
comparison
equal deleted inserted replaced
171:04c1e0188ac3 172:7b9545ad76f6
1 #ifndef DEBUG_H
2 #define DEBUG_H
3
4 /**
5 * @file debug.h
6 * @brief Helper macros for debugging
7 */
8
9 /**
10 * @brief Debug printf
11 *
12 * Prints to stderr if RELEASE_BUILD is not defined.
13 */
14 #ifndef RELEASE_BUILD
15 #define DEBUGFPRINT(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__);
16 #else
17 #define DEBUGFPRINT(fmt, ...)
18 #endif
19
20 #endif

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