MCPcopy Create free account
hub / github.com/Tencent/xLua / lua_settable

Function lua_settable

WebGLPlugins/lapi.c:765–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763
764
765LUA_API void lua_settable (lua_State *L, int idx) {
766 StkId t;
767 lua_lock(L);
768 api_checknelems(L, 2);
769 t = index2addr(L, idx);
770 luaV_settable(L, t, L->top - 2, L->top - 1);
771 L->top -= 2; /* pop index and value */
772 lua_unlock(L);
773}
774
775
776LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {

Callers 3

c_lua_settableFunction · 0.85
c_lua_settable_bypathFunction · 0.85
luaL_findtableFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected