MCPcopy Create free account
hub / github.com/ZDoom/Raze / printf_wrapper

Function printf_wrapper

source/common/scripting/core/vmdisasm.cpp:194–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192static int print_reg(FILE *out, int col, int arg, int mode, int immshift, const VMScriptFunction *func);
193
194static int printf_wrapper(FILE *f, const char *fmt, ...)
195{
196 va_list argptr;
197 int count;
198
199 va_start(argptr, fmt);
200 if (f == NULL)
201 {
202 count = VPrintf(PRINT_HIGH, fmt, argptr);
203 }
204 else
205 {
206 count = vfprintf(f, fmt, argptr);
207 }
208 va_end(argptr);
209 return count;
210}
211
212void VMDumpConstants(FILE *out, const VMScriptFunction *func)
213{

Callers 3

VMDumpConstantsFunction · 0.85
VMDisasmFunction · 0.85
print_regFunction · 0.85

Calls 1

VPrintfFunction · 0.85

Tested by

no test coverage detected