Add a simple DEBUG_ONLY convenience macro
This commit is contained in:
parent
b7b47ed27e
commit
946d4d1eb0
@ -28,6 +28,14 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
#ifdef ENABLE_DEBUGGING
|
||||||
|
#define DEBUG_ONLY(X) \
|
||||||
|
do { \
|
||||||
|
X; \
|
||||||
|
} while (0)
|
||||||
|
#else
|
||||||
|
#define DEBUG_ONLY(X)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define trace { \
|
#define trace { \
|
||||||
std::cerr << __FILE__ << ":" << __func__ << ":" << __LINE__ << std::endl; \
|
std::cerr << __FILE__ << ":" << __func__ << ":" << __LINE__ << std::endl; \
|
||||||
|
Loading…
Reference in New Issue
Block a user