summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPrakxo <87568477+Prakxo@users.noreply.github.com>2023-08-15 18:21:42 +0100
committerGitHub <noreply@github.com>2023-08-15 10:21:42 -0700
commita2deca64d24427d6856dc5e7fc43bde4b1641a43 (patch)
treeb6566ff3648a5fdab02c57c21b1bb9fab1294ccd /src
parentf19df74c6ee597f01c3d7def1fdef105d9bdef92 (diff)
aprintf OK (#51)
* m_pause OK * yeah now it's OK lol * refactor * refactor 2 * m_controller OK * format * fix size comment in game * refactor 3 * refactor 4 * refactor 5 * add unused macro * aprintf OK
Diffstat (limited to 'src')
-rw-r--r--src/boot/libc64/aprintf.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/boot/libc64/aprintf.c b/src/boot/libc64/aprintf.c
new file mode 100644
index 0000000..f2bc0c1
--- /dev/null
+++ b/src/boot/libc64/aprintf.c
@@ -0,0 +1,17 @@
+#include "libc64/aprintf.h"
+
+s32 vaprintf(PrintCallback* func, const char* fmt, va_list ap) {
+ return _Printf((outfun*)*func, (char*)func, fmt, ap);
+}
+
+s32 aprintf(PrintCallback* func, const char* fmt, ...) {
+ s32 ret;
+ va_list args;
+ va_start(args, fmt);
+
+ ret = vaprintf(func, fmt, args);
+
+ va_end(args);
+
+ return ret;
+}