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

Function lua_rawseti

deps/lua/src/lapi.c:684–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682
683
684LUA_API void lua_rawseti (lua_State *L, int idx, int n) {
685 StkId o;
686 lua_lock(L);
687 api_checknelems(L, 1);
688 o = index2adr(L, idx);
689 api_check(L, ttistable(o));
690 setobj2t(L, luaH_setnum(L, hvalue(o), n), L->top-1);
691 luaC_barriert(L, hvalue(o), L->top-1);
692 L->top--;
693 lua_unlock(L);
694}
695
696
697LUA_API int lua_setmetatable (lua_State *L, int objindex) {

Callers 11

luaSetGlobalArrayFunction · 0.85
getargsFunction · 0.85
luaL_refFunction · 0.85
luaL_unrefFunction · 0.85
json_parse_array_contextFunction · 0.85
tinsertFunction · 0.85
tremoveFunction · 0.85
set2Function · 0.85
luaopen_packageFunction · 0.85
g_iofileFunction · 0.85
createstdfileFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaH_setnumFunction · 0.85

Tested by

no test coverage detected