summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gba/isagbprint.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/gba/isagbprint.h b/include/gba/isagbprint.h
index ce547928c..c5eb456c3 100644
--- a/include/gba/isagbprint.h
+++ b/include/gba/isagbprint.h
@@ -33,4 +33,18 @@ void AGBAssert(const char *pFile, int nLine, const char *pExpression, int nStopP
#define AGB_WARNING(exp) (exp) ? ((void*)0) : AGBAssert(__FILE__, __LINE__, #exp, 0);
#endif
+// for matching purposes
+
+#ifdef NDEBUG
+#define AGB_ASSERT_EX(exp, file, line)
+#else
+#define AGB_ASSERT_EX(exp, file, line) (exp) ? ((void*)0) : AGBAssert(file, line, #exp, 1);
+#endif
+
+#ifdef NDEBUG
+#define AGB_WARNING_EX(exp, file, line)
+#else
+#define AGB_WARNING_EX(exp, file, line) (exp) ? ((void*)0) : AGBAssert(file, line, #exp, 0);
+#endif
+
#endif // GUARD_GBA_ISAGBPRINT_H