Merge pull request #346 from jpcima/checked-dbg
Check the validity of DBG() under release mode
This commit is contained in:
commit
fe077d56a9
1 changed files with 2 additions and 2 deletions
|
|
@ -64,10 +64,10 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Debug message
|
// Debug message
|
||||||
#if !defined(NDEBUG) || defined(SFIZZ_ENABLE_RELEASE_DBG)
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#if !defined(NDEBUG) || defined(SFIZZ_ENABLE_RELEASE_DBG)
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#define DBG(ostream) do { std::cerr << std::fixed << std::setprecision(2) << ostream << '\n'; } while (0)
|
#define DBG(ostream) do { std::cerr << std::fixed << std::setprecision(2) << ostream << '\n'; } while (0)
|
||||||
#else
|
#else
|
||||||
#define DBG(ostream) do {} while (0)
|
#define DBG(ostream) do { if (0) { std::cerr << ostream; } } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue