From d1437d30f7e6071f62d1a7842400d6732c7313b7 Mon Sep 17 00:00:00 2001 From: sceptillion <33798691+sceptillion@users.noreply.github.com> Date: Mon, 18 Dec 2017 00:47:25 -0800 Subject: decompile malloc --- include/gba/isagbprint.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include') 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 -- cgit v1.2.3