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

Function lua_settable

third-party/lua-5.1.5/src/lapi.c:645–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643
644
645LUA_API void lua_settable (lua_State *L, int idx) {
646 StkId t;
647 lua_lock(L);
648 api_checknelems(L, 2);
649 t = index2adr(L, idx);
650 api_checkvalidindex(L, t);
651 luaV_settable(L, t, L->top - 2, L->top - 1);
652 L->top -= 2; /* pop index and value */
653 lua_unlock(L);
654}
655
656
657LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {

Callers 2

luaL_findtableFunction · 0.70
ll_registerFunction · 0.70

Calls 2

index2adrFunction · 0.85
luaV_settableFunction · 0.70

Tested by

no test coverage detected