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

Function Exec

source/common/scripting/vm/vmexec.h:2307–2324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2305}
2306
2307static int Exec(VMFunction *func, VMValue *params, int numparams, VMReturn *ret, int numret)
2308{
2309 VMCalls[0]++;
2310 VMFrameStack *stack = &GlobalVMStack;
2311 VMFrame *newf = stack->AllocFrame(static_cast<VMScriptFunction*>(func));
2312 VMFillParams(params, newf, numparams);
2313 try
2314 {
2315 numret = ExecScriptFunc(stack, ret, numret);
2316 }
2317 catch (...)
2318 {
2319 stack->PopFrame();
2320 throw;
2321 }
2322 stack->PopFrame();
2323 return numret;
2324}

Callers

nothing calls this directly

Calls 4

VMFillParamsFunction · 0.85
ExecScriptFuncFunction · 0.85
AllocFrameMethod · 0.80
PopFrameMethod · 0.80

Tested by

no test coverage detected