Exemplo n.º 1
0
        private static ExecutionState Organization_AddMember(RuntimeVM vm)
        {
            vm.ExpectStackSize(3);

            var source = vm.PopAddress();
            var name   = vm.PopString("name");
            var target = vm.PopAddress();

            vm.AddMember(name, source, target);

            return(ExecutionState.Running);
        }
Exemplo n.º 2
0
        private static ExecutionState Organization_AddMember(RuntimeVM Runtime)
        {
            ExpectStackSize(Runtime, 3);

            VMObject temp;

            var source = PopAddress(Runtime);

            temp = Runtime.Stack.Pop();
            Runtime.Expect(temp.Type == VMType.String, "expected string for name");
            var name = temp.AsString();

            var target = PopAddress(Runtime);

            Runtime.AddMember(name, source, target);

            return(ExecutionState.Running);
        }