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

Method NativeScriptCall

source/common/scripting/vm/vmframe.cpp:327–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327int VMNativeFunction::NativeScriptCall(VMFunction *func, VMValue *params, int numparams, VMReturn *returns, int numret)
328{
329 try
330 {
331 VMCycles[0].Unclock();
332 numret = static_cast<VMNativeFunction *>(func)->NativeCall(VM_INVOKE(params, numparams, returns, numret, func->RegTypes));
333 VMCycles[0].Clock();
334
335 return numret;
336 }
337 catch (CVMAbortException &err)
338 {
339 err.MaybePrintMessage();
340 err.stacktrace.AppendFormat("Called from %s\n", func->PrintableName);
341 throw;
342 }
343}
344
345//===========================================================================
346//

Callers

nothing calls this directly

Calls 4

MaybePrintMessageMethod · 0.80
AppendFormatMethod · 0.80
UnclockMethod · 0.45
ClockMethod · 0.45

Tested by

no test coverage detected