MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / Debug_ConsolePrintf

Function Debug_ConsolePrintf

ddebug/winmono.cpp:35–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33static char Mono_buffer[MAX_MONO_LENGTH];
34
35void Debug_ConsolePrintf(int n, const char *format, ...) {
36 char *ptr = Mono_buffer;
37 std::va_list args;
38
39 va_start(args, format);
40 std::vsnprintf(ptr, MAX_MONO_LENGTH, format, args);
41 va_end(args);
42
43 if (strlen(ptr) >= MAX_MONO_LENGTH) {
44 return;
45 }
46
47 Debug_LogWrite(Mono_buffer);
48
49 if (n == 0) {
50 OutputDebugString(Mono_buffer);
51 }
52}
53
54void Debug_ConsolePrintfAt(int n, int row, int col, const char *format, ...) {}
55

Callers

nothing calls this directly

Calls 1

Debug_LogWriteFunction · 0.85

Tested by

no test coverage detected