Mercurial > trustbridge
view common/debug.h @ 227:29467940b07b
Fixed naming of debugging print macro.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Thu, 27 Mar 2014 18:24:08 +0100 |
parents | 7b9545ad76f6 |
children | 19de529ce7fb |
line wrap: on
line source
#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 DEBUGPRINTF(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__); #else #define DEBUGPRINTF(fmt, ...) #endif #endif