예제 #1
0
    internal static void Concat(Instruction i, ILuaVM vm)
    {
        var(a, b, c) = i.ABC();
        a           += 1;
        b           += 1;
        c           += 1;

        int n = c - b + 1;

        vm.CheckStack(n);
        for (int j = b; j <= c; j++)
        {
            vm.PushValue(j);
        }
        vm.Concat(n);
        vm.Replace(a);
    }