MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WriteLine_VA

Function WriteLine_VA

src/openrct2/core/Console.cpp:100–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 }
99
100 void WriteLine_VA(const utf8* format, va_list args)
101 {
102 char buffer[4096];
103 std::vsnprintf(buffer, sizeof(buffer), format, args);
104 auto ctx = GetContext();
105 if (ctx != nullptr)
106 ctx->WriteErrorLine(buffer);
107 else
108 std::printf("%s\n", buffer);
109 }
110 } // namespace Error
111} // namespace OpenRCT2::Console

Callers 1

WriteLineFunction · 0.85

Calls 2

GetContextFunction · 0.85
WriteErrorLineMethod · 0.80

Tested by

no test coverage detected