mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-08 08:55:17 +00:00
Add va_end
and returns to variadic functions (#950)
This commit is contained in:
parent
c577ed1e84
commit
b1cd46c37c
5 changed files with 25 additions and 2 deletions
|
@ -5,8 +5,13 @@ s32 PrintUtils_VPrintf(PrintCallback* pfn, const char* fmt, va_list args) {
|
|||
}
|
||||
|
||||
s32 PrintUtils_Printf(PrintCallback* pfn, const char* fmt, ...) {
|
||||
s32 ret;
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
|
||||
return PrintUtils_VPrintf(pfn, fmt, args);
|
||||
ret = PrintUtils_VPrintf(pfn, fmt, args);
|
||||
|
||||
va_end(args);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue