MCPcopy Create free account
hub / github.com/Warzone2100/warzone2100 / _syncDebug

Function _syncDebug

lib/netplay/sync_debug.cpp:529–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527// MARK: -
528
529void _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
548void _syncDebugIntList(const char* function, const char* str, int* ints, size_t numInts)
549{

Callers 2

_syncDebugBacktraceFunction · 0.85
_syncDebugObjectFunction · 0.85

Calls 2

vssprintfFunction · 0.50
stringMethod · 0.45

Tested by

no test coverage detected