| 36 | } |
| 37 | |
| 38 | static 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 | |
| 49 | void ConsolePrint(char const* format, ...) |
| 50 | { |
no outgoing calls
no test coverage detected