X-Git-Url: https://git.aubio.org/?p=aubio.git;a=blobdiff_plain;f=src%2Faubio_priv.h;h=25d26e84c6c10c7d7910b0e3ab5a3ea982d234e8;hp=5795f1e330ed9b51cb6eb8d37a5635b937215a0b;hb=3d7318366f948e9170aeaa869c884678ba24ff9e;hpb=f862b85478065d5a23a9a3ff48c1093422eec278 diff --git a/src/aubio_priv.h b/src/aubio_priv.h index 5795f1e3..25d26e84 100644 --- a/src/aubio_priv.h +++ b/src/aubio_priv.h @@ -236,16 +236,23 @@ uint_t aubio_log(sint_t level, const char_t *fmt, ...); #define AUBIO_ERR(...) aubio_log(AUBIO_LOG_ERR, "AUBIO ERROR: " __VA_ARGS__) #define AUBIO_INF(...) aubio_log(AUBIO_LOG_INF, "AUBIO INFO: " __VA_ARGS__) #define AUBIO_MSG(...) aubio_log(AUBIO_LOG_MSG, __VA_ARGS__) -#define AUBIO_DBG(...) aubio_log(AUBIO_LOG_DBG, __VA_ARGS__) +#define _AUBIO_DBG(...) aubio_log(AUBIO_LOG_DBG, __VA_ARGS__) #define AUBIO_WRN(...) aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " __VA_ARGS__) #else #define AUBIO_ERR(format, args...) aubio_log(AUBIO_LOG_ERR, "AUBIO ERROR: " format , ##args) #define AUBIO_INF(format, args...) aubio_log(AUBIO_LOG_INF, "AUBIO INFO: " format , ##args) #define AUBIO_MSG(format, args...) aubio_log(AUBIO_LOG_MSG, format , ##args) -#define AUBIO_DBG(format, args...) aubio_log(AUBIO_LOG_DBG, format , ##args) +#define _AUBIO_DBG(format, args...) aubio_log(AUBIO_LOG_DBG, format , ##args) #define AUBIO_WRN(format, args...) aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " format, ##args) #endif +#ifdef DEBUG +#define AUBIO_DBG _AUBIO_DBG +#else +// disable debug output +#define AUBIO_DBG(format, args...) +#endif + #define AUBIO_ERROR AUBIO_ERR #define AUBIO_QUIT(_s) exit(_s)