Go to the documentation of this file.
36 #define DEBUG_ONLY(...) __VA_ARGS__
40 #define DEBUG_COUNTER(n) \
43 std::cerr << "DBG: " << #n << ": " << ++n << std::endl; \
47 #define DEBUG_PRINT(e) \
48 { std::cerr << "DBG: " << (e) << std::endl; }
51 #define DEBUG_VAR(e) \
52 { std::cerr << "DBG: " << #e << ": " << (e) << std::endl; }
55 #define DEBUG_VAR_FLT(p, e) \
57 std::streamsize old_p = std::cerr.precision(); \
58 std::cerr << "DBG: " << #e << ": " << std::setprecision(p) << (e) \
60 << std::setprecision(old_p); \
65 #define DEBUG_ONLY(...)
67 #define DEBUG_COUNTER(n)
69 #define DEBUG_PRINT(e)
73 #define DEBUG_VAR_FLT(p, e)