annotate 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
rev   line source
172
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
1 #ifndef DEBUG_H
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
2 #define DEBUG_H
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
3
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
4 /**
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
5 * @file debug.h
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
6 * @brief Helper macros for debugging
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
7 */
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
8
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
9 /**
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
10 * @brief Debug printf
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
11 *
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
12 * Prints to stderr if RELEASE_BUILD is not defined.
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
13 */
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
14 #ifndef RELEASE_BUILD
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
15 #define DEBUGFPRINT(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__);
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
16 #else
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
17 #define DEBUGFPRINT(fmt, ...)
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
18 #endif
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
19
7b9545ad76f6 Added include file with debugging macros.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
20 #endif

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