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

@ -29,10 +29,8 @@
#include <sstream>
#ifdef ENABLE_DEBUGGING
#define DEBUG_ONLY(X) \
do { \
X; \
} while (0)
#define DEBUG_ONLY(X) \
X;
#else
#define DEBUG_ONLY(X)
#endif