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

Function DumpFunction

source/common/scripting/core/vmdisasm.cpp:681–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679//==========================================================================
680
681void DumpFunction(FILE *dump, VMScriptFunction *sfunc, const char *label, int labellen)
682{
683 const char *marks = "=======================================================";
684 fprintf(dump, "\n%.*s %s %.*s", max(3, 38 - labellen / 2), marks, label, max(3, 38 - labellen / 2), marks);
685 fprintf(dump, "\nInteger regs: %-3d Float regs: %-3d Address regs: %-3d String regs: %-3d\nStack size: %d\n",
686 sfunc->NumRegD, sfunc->NumRegF, sfunc->NumRegA, sfunc->NumRegS, sfunc->MaxParam);
687 VMDumpConstants(dump, sfunc);
688 fprintf(dump, "\nDisassembly @ %p:\n", sfunc->Code);
689 VMDisasm(dump, sfunc->Code, sfunc->CodeSize, sfunc);
690}
691

Callers 1

WriteMethod · 0.85

Calls 2

VMDumpConstantsFunction · 0.85
VMDisasmFunction · 0.85

Tested by

no test coverage detected