MCPcopy Create free account
hub / github.com/crownengine/crown / debugPrintfVargs

Function debugPrintfVargs

3rdparty/bx/src/debug.cpp:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 }
164
165 void debugPrintfVargs(const char* _format, va_list _argList)
166 {
167 char temp[8192];
168 char* out = temp;
169 int32_t len = vsnprintf(out, sizeof(temp), _format, _argList);
170 if ( (int32_t)sizeof(temp) < len)
171 {
172 out = (char*)BX_STACK_ALLOC(len+1);
173 len = vsnprintf(out, len, _format, _argList);
174 }
175 out[len] = '\0';
176 debugOutput(out);
177 }
178
179 void debugPrintf(const char* _format, ...)
180 {

Callers 3

traceFunction · 0.85
debugPrintfFunction · 0.85
debugPrintfDataFunction · 0.85

Calls 2

debugOutputFunction · 0.85
vsnprintfFunction · 0.70

Tested by

no test coverage detected