lua_pushglobaltable() 공개 정적인 메소드

public static lua_pushglobaltable ( IntPtr l ) : void
l System.IntPtr
리턴 void
예제 #1
0
        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
        }
예제 #2
0
 public void lua_pushglobaltable()
 {
     LuaDLL.lua_pushglobaltable(L);
 }