MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_rawgeti

Function lua_rawgeti

freebsd/contrib/openzfs/module/lua/lapi.c:646–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644
645
646LUA_API void lua_rawgeti (lua_State *L, int idx, int n) {
647 StkId t;
648 lua_lock(L);
649 t = index2addr(L, idx);
650 api_check(L, ttistable(t), "table expected");
651 setobj2s(L, L->top, luaH_getint(hvalue(t), n));
652 api_incr_top(L);
653 lua_unlock(L);
654}
655
656
657LUA_API void lua_rawgetp (lua_State *L, int idx, const void *p) {

Callers 8

ipairsauxFunction · 0.70
luaL_refFunction · 0.70
luaL_unrefFunction · 0.70
tinsertFunction · 0.70
tremoveFunction · 0.70
addfieldFunction · 0.70
unpackFunction · 0.70
auxsortFunction · 0.70

Calls 2

index2addrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected