MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_rawset

Function lua_rawset

lua/lapi.c:678–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676
677
678LUA_API void lua_rawset (lua_State *L, int idx) {
679 StkId t;
680 lua_lock(L);
681 api_checknelems(L, 2);
682 t = index2adr(L, idx);
683 api_check(L, ttistable(t));
684 setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1);
685 luaC_barriert(L, hvalue(t), L->top-1);
686 L->top -= 2;
687 lua_unlock(L);
688}
689
690
691LUA_API void lua_rawseti (lua_State *L, int idx, int n) {

Callers 7

luaB_rawsetFunction · 0.85
luaB_newproxyFunction · 0.85
luaL_setnFunction · 0.85
disable_global_variablesFunction · 0.85
init_sys_funcsFunction · 0.85
gethooktableFunction · 0.85
db_sethookFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected