summaryrefslogtreecommitdiff
path: root/include/assert.h
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-02 00:53:26 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-02 00:53:26 -0500
commitd50dcfcdd37aedab6352e4953cb2be04f2691113 (patch)
tree50bddcab4522f8a9c18afcef425a41a68474c4fb /include/assert.h
parentd6f88aaae447dbc22ff5fa289343343e7034263b (diff)
add no print support.
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