forked from rosebudai/OpenRCT2-Web
Make Console::Error::WriteLine formattable
This commit is contained in:
1 parent
8c2393f5c5
commit
3c64010fe1
9 files changed
+29
-45
No files matched your search
@@ -91,10 +91,14 @@ namespace Console
|
||||
fputs(platform_get_new_line(), stderr);
|
||||
}
|
||||
|
||||
void WriteLine(const utf8 * str)
|
||||
void WriteLine(const utf8 * format, ...)
|
||||
{
|
||||
fputs(str, stderr);
|
||||
WriteLine();
|
||||
va_list args;
|
||||
|
||||
va_start(args, format);
|
||||
vfprintf(stdout, format, args);
|
||||
puts("");
|
||||
va_end(args);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user