summaryrefslogtreecommitdiff
path: root/src/utils/checkutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-04 17:40:40 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-04 17:40:40 +0300
commit62813629db182aa7098c6ab6fe63c304c2c729b0 (patch)
tree8a9463be90ae072e83e4adab80c424d8b419b5bb /src/utils/checkutils.cpp
parentd0da3a7489670a202901ac32ca6e4bffb16d485b (diff)
downloadplus-62813629db182aa7098c6ab6fe63c304c2c729b0.tar.gz
plus-62813629db182aa7098c6ab6fe63c304c2c729b0.tar.bz2
plus-62813629db182aa7098c6ab6fe63c304c2c729b0.tar.xz
plus-62813629db182aa7098c6ab6fe63c304c2c729b0.zip
Move most checkutils functions into macroses.
Diffstat (limited to 'src/utils/checkutils.cpp')
-rw-r--r--src/utils/checkutils.cpp50
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,