Mercurial > trustbridge
view 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 |
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 DEBUGFPRINT(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__); #else #define DEBUGFPRINT(fmt, ...) #endif #endif