| 527 | // MARK: - |
| 528 | |
| 529 | void _syncDebug(const char* function, const char* str, ...) |
| 530 | { |
| 531 | #ifdef WZ_CC_MSVC |
| 532 | char const* f = function; while (*f != '\0') if (*f++ == ':') |
| 533 | { |
| 534 | function = f; // Strip "Class::" from "Class::myFunction". |
| 535 | } |
| 536 | #endif |
| 537 | |
| 538 | va_list ap; |
| 539 | char outputBuffer[MAX_LEN_LOG_LINE]; |
| 540 | |
| 541 | va_start(ap, str); |
| 542 | vssprintf(outputBuffer, str, ap); |
| 543 | va_end(ap); |
| 544 | |
| 545 | syncDebugLog[syncDebugNext].string(function, outputBuffer); |
| 546 | } |
| 547 | |
| 548 | void _syncDebugIntList(const char* function, const char* str, int* ints, size_t numInts) |
| 549 | { |
no test coverage detected