MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / vConsolePrint

Function vConsolePrint

IntelPresentMon/SampleClient/Console.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static void vConsolePrint(char const* format, va_list args)
39{
40 auto s = gConsoleWriteBuffer + gConsoleWriteBufferIndex;
41 auto n = sizeof(gConsoleWriteBuffer) - gConsoleWriteBufferIndex;
42
43 int r = vsnprintf(s, n, format, args);
44 if (r > 0) {
45 gConsoleWriteBufferIndex = min((uint32_t) (n - 1), gConsoleWriteBufferIndex + r);
46 }
47}
48
49void ConsolePrint(char const* format, ...)
50{

Callers 2

ConsolePrintFunction · 0.85
ConsolePrintLnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected