Check the validity of DBG() under release mode

This commit is contained in:
Jean Pierre Cimalando 2020-08-08 15:00:20 +02:00
parent 1d3346012f
commit 1b794576e9

View file

@ -64,10 +64,10 @@
#endif
// Debug message
#if !defined(NDEBUG) || defined(SFIZZ_ENABLE_RELEASE_DBG)
#include <iostream>
#if !defined(NDEBUG) || defined(SFIZZ_ENABLE_RELEASE_DBG)
#include <iomanip>
#define DBG(ostream) do { std::cerr << std::fixed << std::setprecision(2) << ostream << '\n'; } while (0)
#else
#define DBG(ostream) do {} while (0)
#define DBG(ostream) do { if (0) { std::cerr << ostream; } } while (0)
#endif