public static lua_pushglobaltable ( |
||
l | ||
Résultat | void |
public void LuaRawGlobal(string name) { #if LUAC_5_3 LuaDLL.lua_pushglobaltable(L); int top = LuaDLL.lua_gettop(L); LuaDLL.lua_pushstring(L, name); LuaDLL.lua_rawget(L, top); //弹出global table LuaDLL.lua_remove(L, top); #else LuaDLL.lua_pushstring(L, name); LuaDLL.lua_rawget(L, LuaIndexes.LUA_GLOBALSINDEX); #endif }
public void lua_pushglobaltable() { LuaDLL.lua_pushglobaltable(L); }