public CallFrame(Obj[] Args, int LocalCount, long RetIP, CallFrame PFrame, Action OnReturn) { Locals = new Obj[LocalCount]; ParentFrame = PFrame; Arguments = Args; ReturnIP = RetIP; ReturnAction = OnReturn; }
public void SetLocalsCount(int Num) { Obj[] NewLocals = new Obj[Num]; if (Locals.Length > 0 || Num > 0) Array.Copy(Locals, NewLocals, Locals.Length < Num ? Locals.Length : Num); Locals = NewLocals; }