From 7eeefd2602d657e7cfc76fcc8e80cc5d9d2236db Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 22 Oct 2018 22:37:11 -0400 Subject: [PATCH] Ensures LOGs look like statements even in release builds. --- Outputs/Log.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Outputs/Log.hpp b/Outputs/Log.hpp index a274636fc..9d9538ced 100644 --- a/Outputs/Log.hpp +++ b/Outputs/Log.hpp @@ -11,11 +11,11 @@ #ifdef NDEBUG -#define LOG(x) -#define LOGNBR(x) +#define LOG(x) while(false) {} +#define LOGNBR(x) while(false) {} -#define ERROR(x) -#define ERRORNBR(x) +#define ERROR(x) while(false) {} +#define ERRORNBR(x) while(false) {} #else