1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

refactor console error output

This commit is contained in:
IntelOrca
2016-01-11 21:49:13 +00:00
parent d8d706cc58
commit df2b793c0a
4 changed files with 54 additions and 37 deletions

View File

@@ -44,24 +44,36 @@ namespace Console
puts(str);
}
void WriteError(char c)
namespace Error
{
fputc(c, stderr);
}
void Write(char c)
{
fputc(c, stderr);
}
void WriteError(const utf8 * str)
{
fputs(str, stderr);
}
void Write(const utf8 * str)
{
fputs(str, stderr);
}
void WriteLineError()
{
fputs(platform_get_new_line(), stderr);
}
void WriteFormat(const utf8 * format, ...)
{
va_list args;
void WriteLineError(const utf8 * str)
{
fputs(str, stderr);
WriteLineError();
va_start(args, format);
vfprintf(stderr, format, args);
va_end(args);
}
void WriteLine()
{
fputs(platform_get_new_line(), stderr);
}
void WriteLine(const utf8 * str)
{
fputs(str, stderr);
WriteLine();
}
}
}