From 09be8f791f8c2d9f7eb5ef5b2f67922c79862024 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 9 Nov 2017 09:05:13 +0000 Subject: Disabled debug output when not using -debug --- src/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug.h') diff --git a/src/debug.h b/src/debug.h index b3ec17b..29f6c69 100644 --- a/src/debug.h +++ b/src/debug.h @@ -77,7 +77,7 @@ inline void fail_msg(std::string msg) { #else // DEBUG #define warning_msg(msg) cerr << "**** WARNING: " << msg << " in " << __FILE__ << " at line " << __LINE__ << " in " << __FUNCTION__ << endl; -#define debug_msg(msg) cerr << "**** DEBUG: " << msg << " in " << __FILE__ << " at line " << __LINE__ << " in " << __FUNCTION__ << endl; +#define debug_msg(msg) (is_debug_mode() && cerr << "**** DEBUG: " << msg << " in " << __FILE__ << " at line " << __LINE__ << " in " << __FUNCTION__ << endl); #define assert_issue(is_issue, expr) \ ((is_issue) ? enforce_msg(expr,"FAIL: ISSUE assert") : __ASSERT_VOID_CAST(0)) -- cgit v1.2.3