MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_rawgeti

Function lua_rawgeti

ThirdParty/lua/lua/lapi.c:638–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636
637
638LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) {
639 StkId t;
640 lua_lock(L);
641 t = index2addr(L, idx);
642 api_check(ttistable(t), "table expected");
643 setobj2s(L, L->top, luaH_getint(hvalue(t), n));
644 api_incr_top(L);
645 lua_unlock(L);
646 return ttnov(L->top - 1);
647}
648
649
650LUA_API int lua_rawgetp (lua_State *L, int idx, const void *p) {

Callers 5

ipairsaux_rawFunction · 0.85
luaL_refFunction · 0.85
luaL_unrefFunction · 0.85
gctmFunction · 0.85
findloaderFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected