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

Function lua_rawgeti

deps/lua/src/lapi.c:567–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565
566
567LUA_API void lua_rawgeti (lua_State *L, int idx, int n) {
568 StkId o;
569 lua_lock(L);
570 o = index2adr(L, idx);
571 api_check(L, ttistable(o));
572 setobj2s(L, L->top, luaH_getnum(hvalue(o), n));
573 api_incr_top(L);
574 lua_unlock(L);
575}
576
577
578LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {

Callers 15

ipairsauxFunction · 0.85
luaB_unpackFunction · 0.85
luaL_refFunction · 0.85
luaL_unrefFunction · 0.85
json_append_arrayFunction · 0.85
foreachiFunction · 0.85
tinsertFunction · 0.85
tremoveFunction · 0.85
addfieldFunction · 0.85
auxsortFunction · 0.85
ll_requireFunction · 0.85
io_closeFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaH_getnumFunction · 0.85

Tested by

no test coverage detected