summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorsceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-18 00:47:25 -0800
committersceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-18 00:47:25 -0800
commitd1437d30f7e6071f62d1a7842400d6732c7313b7 (patch)
tree35b574a2e7a07b4778c7a3a1343c8aead5e40cf2 /include
parent4265e3617426639577df510c6d659e6a9cd13b19 (diff)
decompile malloc
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