示例#1
0
 /*
  * 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));
 }
示例#2
0
 /*
  * 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));
 }
示例#3
0
 /*
  * 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));
 }