MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_settable

Function lua_settable

deps/lua/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 11

luaPushErrorFunction · 0.85
scriptingInitFunction · 0.85
luaL_findtableFunction · 0.85
mp_decode_to_lua_arrayFunction · 0.85
mp_decode_to_lua_hashFunction · 0.85
ll_registerFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_settableFunction · 0.85

Tested by

no test coverage detected