public static LuaFuncRef Compile(string Str) { if (LL.luaL_loadstring(L, Str) != 0) { throw new Exception(LL.lua_tostring(L, -1)); } return(new LuaFuncRef(L)); }
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)); } }