summaryrefslogtreecommitdiff
path: root/include/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/assert.h')
-rwxr-xr-xinclude/assert.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/assert.h b/include/assert.h
index 7a5e727e2..d724290fa 100755
--- a/include/assert.h
+++ b/include/assert.h
@@ -16,6 +16,16 @@
// without NOAGBPRN defined, this enables asserts for usage
// on a standard GBA debugger unit or in emulators that
// support it.
+
+// no$gba support, due to the different method no$gba uses to print debug strings.
+// currently cannot use IsNoGba due to no$gba doing a gloriously fuck up of a job and
+// breaking the version identifier.
+#define AGBPrint(pBuf) \
+{ \
+ NOGBAPrint(pBuf); \
+ AGBPrint(pBuf); \
+}
+
void AGBPrintInit(void);
void AGBPutc(const char pBuf);
void AGBPrint(const char *pBuf);
@@ -23,6 +33,9 @@
void AGBPrintFlush1Block(void);
void AGBPrintFlush(void);
void AGBAssert(const char *pFile, int nLine, const char *pExpression, int nStopProgram);
+ // NOGBA PROTOTYPES FOR LIBISAGBPRN.C
+ bool32 IsNoGba(void);
+ void NOGBAPrint(const char *pBuf);
#endif
// when using AGB_WARNING, be sure to flush after as AGBAssert does not flush the string to console
@@ -39,5 +52,4 @@
#define AGB_WARNING(expression) (expression) ? ((void *)0) : AGBAssert(__FILE__, __LINE__, #expression, 0);
#endif
-
#endif