MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_settable

Function lua_settable

third-party/lua-5.2.4/src/lapi.c:747–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745
746
747LUA_API void lua_settable (lua_State *L, int idx) {
748 StkId t;
749 lua_lock(L);
750 api_checknelems(L, 2);
751 t = index2addr(L, idx);
752 luaV_settable(L, t, L->top - 2, L->top - 1);
753 L->top -= 2; /* pop index and value */
754 lua_unlock(L);
755}
756
757
758LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {

Callers 1

luaL_findtableFunction · 0.70

Calls 2

index2addrFunction · 0.70
luaV_settableFunction · 0.70

Tested by

no test coverage detected