Go to the documentation of this file.
37 #define DEBUG_ONLY(...) __VA_ARGS__
41 #define DEBUG_COUNTER(n) \
44 std::cerr << "DBG: " << #n << ": " << ++n << std::endl; \
48 #define DEBUG_PRINT(e) \
50 std::cerr << "DBG: " << (e) << std::endl; \
54 #define DEBUG_VAR(e) \
56 std::cerr << "DBG: " << #e << ": " << (e) << std::endl; \
60 #define DEBUG_VAR_FLT(p, e) \
62 std::streamsize old_p = std::cerr.precision(); \
63 std::cerr << "DBG: " << #e << ": " << std::setprecision(p) \
64 << (e) << std::endl << std::setprecision(old_p); \
69 #define DEBUG_ONLY(...)
71 #define DEBUG_COUNTER(n)
73 #define DEBUG_PRINT(e)
77 #define DEBUG_VAR_FLT(p, e)