Use actual filename/lineno in AGBAssert calls for modern

This commit is contained in:
PikalaxALT
2020-04-06 15:13:47 -04:00
parent bbeef52a01
commit b2e8e02364
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -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