From 62813629db182aa7098c6ab6fe63c304c2c729b0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 May 2016 17:40:40 +0300 Subject: Move most checkutils functions into macroses. --- src/utils/checkutils.cpp | 50 ------------------------------------------------ 1 file changed, 50 deletions(-) (limited to 'src/utils/checkutils.cpp') diff --git a/src/utils/checkutils.cpp b/src/utils/checkutils.cpp index 3161c8f46..5efda43f5 100644 --- a/src/utils/checkutils.cpp +++ b/src/utils/checkutils.cpp @@ -30,56 +30,6 @@ #include "debug.h" -bool reportFalseReal(const bool val, - const char *const text, - const char *const file, - const unsigned line, - const char *const func) -{ - if (!val) - reportStack(file, line, func, "Detected false value", text); - return val; -} - -bool reportTrueReal(const bool val, - const char *const text, - const char *const file, - const unsigned line, - const char *const func) -{ - if (val) - reportStack(file, line, func, "Detected true value", text); - return val; -} - -bool failFalseReal(const bool val, - const char *const text, - const char *const file, - const unsigned line, - const char *const func) -{ - if (!val) - { - reportStack(file, line, func, "Detected false value", text); - throw new std::exception; - } - return val; -} - -bool failTrueReal(const bool val, - const char *const text, - const char *const file, - const unsigned line, - const char *const func) -{ - if (val) - { - reportStack(file, line, func, "Detected true value", text); - throw new std::exception; - } - return val; -} - void reportStack(const char *const file, const unsigned int line, const char *const func, -- cgit v1.2.3-60-g2f50