Dont put a block around DEBUG_ONLY statements.

This allows variable declerations, raii statements, and other hackery to
affect surrounding code more easily.
This commit is contained in:
Danny Robson 2012-05-15 16:04:35 +10:00
parent e8844943a7
commit 0c86a8b240

View File

@ -30,9 +30,7 @@
#ifdef ENABLE_DEBUGGING #ifdef ENABLE_DEBUGGING
#define DEBUG_ONLY(X) \ #define DEBUG_ONLY(X) \
do { \ X;
X; \
} while (0)
#else #else
#define DEBUG_ONLY(X) #define DEBUG_ONLY(X)
#endif #endif