Lua API (get functions Lua->stack)

1: void lua_gettable(lua_State* L, int idx)

Lua API (get functions Lua->stack)_第1张图片

2: void lua_getfield(lua_State* L, int idx, const char* k)

Lua API (get functions Lua->stack)_第2张图片

3: void lua_rawget(lua_State* L, int idx)

等同 lua_gettable 但是不触发元方法

Lua API (get functions Lua->stack)_第3张图片

4: void lua_rawgeti(lua_State* L, int idx, int n)

Lua API (get functions Lua->stack)_第4张图片

5: void createtable(lua_State* L, int narray, int nrec)

Lua API (get functions Lua->stack)_第5张图片

6: int lua_getmetatable(lua_State* L, int objindex)

Lua API (get functions Lua->stack)_第6张图片

7: void* lua_newuserdata(lua_State* L, size_t sz)

sz: 内存大小

Lua API (get functions Lua->stack)_第7张图片

8: void lua_getfenv(lua_State* L, int idx)

Lua API (get functions Lua->stack)_第8张图片


你可能感兴趣的:(Lua API (get functions Lua->stack))