mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 15:01:32 -04:00
flg_set.c OK and documented (#335)
* Draw OK, Update very much not * Flag table imported * Update OK * Actually OK this time * Begin documenting * Rename some stuff * Rename functions * spec * Review * Format * Anghelo's review * Fix lifemeter bss * Format * Missed one * idle.c bss
This commit is contained in:
@@ -171,15 +171,18 @@ Gfx* GfxPrint_Close(GfxPrint* this) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
void GfxPrint_VPrintf(GfxPrint* this, const char* fmt, va_list args) {
|
||||
PrintUtils_VPrintf((PrintCallback*)&this->callback, fmt, args);
|
||||
s32 GfxPrint_VPrintf(GfxPrint* this, const char* fmt, va_list args) {
|
||||
return PrintUtils_VPrintf((PrintCallback*)&this->callback, fmt, args);
|
||||
}
|
||||
|
||||
void GfxPrint_Printf(GfxPrint* this, const char* fmt, ...) {
|
||||
s32 GfxPrint_Printf(GfxPrint* this, const char* fmt, ...) {
|
||||
s32 ret;
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
|
||||
GfxPrint_VPrintf(this, fmt, args);
|
||||
ret = GfxPrint_VPrintf(this, fmt, args);
|
||||
|
||||
va_end(args);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
#include "global.h"
|
||||
|
||||
void PrintUtils_VPrintf(PrintCallback* pfn, const char* fmt, va_list args) {
|
||||
_Printf(*pfn, pfn, fmt, args);
|
||||
s32 PrintUtils_VPrintf(PrintCallback* pfn, const char* fmt, va_list args) {
|
||||
return _Printf(*pfn, pfn, fmt, args);
|
||||
}
|
||||
|
||||
void PrintUtils_Printf(PrintCallback* pfn, const char* fmt, ...) {
|
||||
s32 PrintUtils_Printf(PrintCallback* pfn, const char* fmt, ...) {
|
||||
s32 ret;
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
|
||||
PrintUtils_VPrintf(pfn, fmt, args);
|
||||
ret = PrintUtils_VPrintf(pfn, fmt, args);
|
||||
|
||||
va_end(args);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user