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

Method AllocFrame

source/common/scripting/vm/vmframe.cpp:415–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413//===========================================================================
414
415VMFrame *VMFrameStack::AllocFrame(VMScriptFunction *func)
416{
417 VMFrame *frame = Alloc(func->StackSize);
418 frame->Func = func;
419 frame->NumRegD = func->NumRegD;
420 frame->NumRegF = func->NumRegF;
421 frame->NumRegS = func->NumRegS;
422 frame->NumRegA = func->NumRegA;
423 frame->MaxParam = func->MaxParam;
424 frame->Func = func;
425 frame->InitRegS();
426 if (func->SpecialInits.Size())
427 {
428 func->InitExtra(frame->GetExtra());
429 }
430 return frame;
431}
432
433//===========================================================================
434//

Callers 2

CreateFullVMFrameFunction · 0.80
ExecFunction · 0.80

Calls 4

InitRegSMethod · 0.80
InitExtraMethod · 0.80
GetExtraMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected