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:
EllipticEllipsis
2021-10-11 19:28:16 +01:00
committed by GitHub
parent d061f1c666
commit 565b1f7579
13 changed files with 366 additions and 48 deletions
+7 -4
View File
@@ -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;
}
+7 -4
View File
@@ -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;
}