Beispiel #1
0
        static void Run(LuaFuncRef FuncRef, int ReturnValues, object[] Args)
        {
            FuncRef.GetRef();

            for (int i = 0; i < Args.Length; i++)
            {
                Advanced.Push(L, Args[i]);
            }

            if (LL.lua_pcall(L, Args.Length, ReturnValues, 0) != 0)
            {
                throw new Exception(LL.lua_tostring(L, -1));
            }
        }