diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-04 17:40:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-04 17:40:40 +0300 |
commit | 62813629db182aa7098c6ab6fe63c304c2c729b0 (patch) | |
tree | 8a9463be90ae072e83e4adab80c424d8b419b5bb /src/utils/checkutils.cpp | |
parent | d0da3a7489670a202901ac32ca6e4bffb16d485b (diff) | |
download | mv-62813629db182aa7098c6ab6fe63c304c2c729b0.tar.gz mv-62813629db182aa7098c6ab6fe63c304c2c729b0.tar.bz2 mv-62813629db182aa7098c6ab6fe63c304c2c729b0.tar.xz mv-62813629db182aa7098c6ab6fe63c304c2c729b0.zip |
Move most checkutils functions into macroses.
Diffstat (limited to 'src/utils/checkutils.cpp')
-rw-r--r-- | src/utils/checkutils.cpp | 50 |
1 files changed, 0 insertions, 50 deletions
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, |