/* * Gets the userdata in the index positon of the Lua stack. */ internal LuaUserData getUserData(LuaCore.lua_State luaState, int index) { LuaLib.lua_pushvalue(luaState, index); return(new LuaUserData(LuaLib.lua_ref(luaState, 1), interpreter)); }
/* * Gets the function in the index positon of the Lua stack. */ internal LuaFunction getFunction(LuaCore.lua_State luaState, int index) { LuaLib.lua_pushvalue(luaState, index); return(new LuaFunction(LuaLib.lua_ref(luaState, 1), interpreter)); }
/* * Gets the table in the index positon of the Lua stack. */ internal LuaTable getTable(LuaCore.lua_State luaState, int index) { LuaLib.lua_pushvalue(luaState, index); return(new LuaTable(LuaLib.lua_ref(luaState, 1), interpreter)); }