From 0c86a8b240ecd254d1af014728b94be54f38ac8c Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 15 May 2012 16:04:35 +1000 Subject: [PATCH] Dont put a block around DEBUG_ONLY statements. This allows variable declerations, raii statements, and other hackery to affect surrounding code more easily. --- debug.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/debug.hpp b/debug.hpp index 60f4c99e..28040b3d 100644 --- a/debug.hpp +++ b/debug.hpp @@ -29,10 +29,8 @@ #include #ifdef ENABLE_DEBUGGING -#define DEBUG_ONLY(X) \ -do { \ - X; \ -} while (0) +#define DEBUG_ONLY(X) \ + X; #else #define DEBUG_ONLY(X) #endif