summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/checkutils.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/utils/checkutils.h b/src/utils/checkutils.h
index 9617ca140..7b76da8f1 100644
--- a/src/utils/checkutils.h
+++ b/src/utils/checkutils.h
@@ -85,10 +85,22 @@ void reportStack(const char *const file,
#define reportTrue(val) (val)
#define failFalse(val) (val)
#define failTrue(val) (val)
-#define returnTrueV(val)
-#define returnFalseV(val)
-#define returnTrue(val)
-#define returnFalse(val)
+
+#define returnFalseV(val) \
+ if (!val) \
+ return;
+
+#define returnTrueV(val) \
+ if (val) \
+ return;
+
+#define returnFalse(ret, val) \
+ if (!val) \
+ return ret;
+
+#define returnTrue(ret, val) \
+ if (val) \
+ return ret;
#endif // ENABLE_ASSERTS
#endif // UTILS_CHECKUTILS_H