예제 #1
0
		public CallFrame(Obj[] Args, int LocalCount, long RetIP, CallFrame PFrame, Action OnReturn) {
			Locals = new Obj[LocalCount];
			ParentFrame = PFrame;
			Arguments = Args;
			ReturnIP = RetIP;
			ReturnAction = OnReturn;
		}
예제 #2
0
		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;
		}