diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-12 15:08:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-12 15:08:15 +0300 |
commit | 7d762d70604d250cb51282161d390cba1ea664c7 (patch) | |
tree | f5341950af8d4649f0d80c3092d5fb9c7c2daa9e /src/utils/checkutils.h | |
parent | 0cda45b8c1775c6a0f1bdf52c8801ccdfd21a8c7 (diff) | |
download | manaplus-7d762d70604d250cb51282161d390cba1ea664c7.tar.gz manaplus-7d762d70604d250cb51282161d390cba1ea664c7.tar.bz2 manaplus-7d762d70604d250cb51282161d390cba1ea664c7.tar.xz manaplus-7d762d70604d250cb51282161d390cba1ea664c7.zip |
Macro reportAlways also show message in log if asserts disabled in compile time.
Diffstat (limited to 'src/utils/checkutils.h')
-rw-r--r-- | src/utils/checkutils.h | 7 |
1 files changed, 6 insertions, 1 deletions
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) \ |