From b2e8e023646ad3a21bc3b5fd10fb392a980c4efe Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Mon, 6 Apr 2020 15:13:47 -0400 Subject: Use actual filename/lineno in AGBAssert calls for modern --- include/gba/isagbprint.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/gba/isagbprint.h b/include/gba/isagbprint.h index c5eb456c3..8a64b8223 100644 --- a/include/gba/isagbprint.h +++ b/include/gba/isagbprint.h @@ -35,6 +35,10 @@ void AGBAssert(const char *pFile, int nLine, const char *pExpression, int nStopP // for matching purposes +#if MODERN +#define AGB_ASSERT_EX(exp, file, line) AGB_ASSERT(exp) +#define AGB_WARNING_EX(exp, file, line) AGB_WARNING(exp) +#else #ifdef NDEBUG #define AGB_ASSERT_EX(exp, file, line) #else @@ -46,5 +50,6 @@ void AGBAssert(const char *pFile, int nLine, const char *pExpression, int nStopP #else #define AGB_WARNING_EX(exp, file, line) (exp) ? ((void*)0) : AGBAssert(file, line, #exp, 0); #endif +#endif #endif // GUARD_GBA_ISAGBPRINT_H -- cgit v1.2.3