From 7d762d70604d250cb51282161d390cba1ea664c7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 May 2016 15:08:15 +0300 Subject: Macro reportAlways also show message in log if asserts disabled in compile time. --- src/utils/checkutils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/utils/checkutils.h') diff --git a/src/utils/checkutils.h b/src/utils/checkutils.h index b67c5d566..0423a0925 100644 --- a/src/utils/checkutils.h +++ b/src/utils/checkutils.h @@ -171,7 +171,12 @@ void reportStack(); #define reportFalseReal(val) (val) #define reportTrueReal(val) (val) -#define reportAlwaysReal(...) ; +#define reportAlwaysReal(...) \ + { \ + logger->log("Error:"); \ + logger->log( \ + __VA_ARGS__); \ + } #define returnFalseVReal(val) \ if (!val) \ -- cgit v1.2.3-70-g09d2