Exemple #1
0
    internal static void Closure(Instruction i, ILuaVM vm)
    {
        var(a, bx) = i.ABx();
        a         += 1;

        vm.LoadProto(bx);
        vm.Replace(a);
    }
Exemple #2
0
        /// <summary>
        /// R(A) = closure(KPROTO[Bx])
        /// </summary>
        public static void Closure(Instruction ins, ILuaVM vm)
        {
            ins.ABx(out var a, out var bx);
            a += 1;

            vm.LoadProto(bx);
            vm.Replace(a);
        }
Exemple #3
0
        //(iBx) R(A) := closure(KPROTO[Bx])
        public static void Closure(int i, ILuaVM vm)
        {
            int a  = Instruction.GetA(i);
            int bx = Instruction.GetBx(i);

            vm.LoadProto(bx);
            vm.Replace(a);
        }