MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / lua_rawgeti

Function lua_rawgeti

src/vm/luavm/lua/lapi.c:640–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

ipairsaux_rawFunction · 0.85
pushargsFunction · 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