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

Function Debug_ConsolePrintf

ddebug/lnxmono.cpp:56–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54static char Mono_buffer[MAX_MONO_LENGTH];
55
56void Debug_ConsolePrintf(int n, const char *format, ...) {
57 va_list marker;
58 va_start(marker, format);
59 std::vsnprintf(Mono_buffer, MAX_MONO_LENGTH, format, marker);
60 va_end(marker);
61
62 Debug_LogWrite(Mono_buffer);
63
64 if (n == 0) {
65 printf("%s", Mono_buffer);
66
67 int end = strlen(Mono_buffer) - 1;
68 if ((end > 1) && (Mono_buffer[end] != 0x0a) && (Mono_buffer[end] != 0x0d)) {
69 printf("\n");
70 Debug_LogWrite("\n");
71 }
72 }
73}
74
75void Debug_ConsolePrintfAt(int n, int row, int col, const char *format, ...) {}

Callers

nothing calls this directly

Calls 1

Debug_LogWriteFunction · 0.85

Tested by

no test coverage detected