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

Method FirstScriptCall

source/common/scripting/vm/vmframe.cpp:312–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312int VMScriptFunction::FirstScriptCall(VMFunction *func, VMValue *params, int numparams, VMReturn *ret, int numret)
313{
314 // [Player701] Check that we aren't trying to call an abstract function.
315 // This shouldn't happen normally, but if it does, let's catch this explicitly
316 // rather than let GZDoom crash.
317 if (func->VarFlags & VARF_Abstract)
318 {
319 ThrowAbortException(X_OTHER, "attempt to call abstract function %s.", func->PrintableName);
320 }
321
322 static_cast<VMScriptFunction*>(func)->JitCompile();
323
324 return func->ScriptCall(func, params, numparams, ret, numret);
325}
326
327int VMNativeFunction::NativeScriptCall(VMFunction *func, VMValue *params, int numparams, VMReturn *returns, int numret)
328{

Callers

nothing calls this directly

Calls 2

ThrowAbortExceptionFunction · 0.85
JitCompileMethod · 0.80

Tested by

no test coverage detected