diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-04-12 10:12:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 10:12:37 -0400 |
commit | 6001e107993d1da69decdf479abf8a661ad57dda (patch) | |
tree | 9a430f0b70e0a24965378724f1bd28cd1a193dc1 /include/gba/isagbprint.h | |
parent | 2880cf2a51ea36fa36f00d9ecf07177e5955c882 (diff) | |
parent | 7a562d6bae78fd7c62ed2f804fd8dcc555d85d18 (diff) |
Merge pull request #321 from PikalaxALT/modern_gcc
Get pokefirered_modern to build
Diffstat (limited to 'include/gba/isagbprint.h')
-rw-r--r-- | include/gba/isagbprint.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |