MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_rawgeti

Function lua_rawgeti

src/Chain/libraries/glua/lapi.cpp:660–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658
659
660LUA_API int lua_rawgeti(lua_State *L, int idx, lua_Integer n) {
661 StkId t;
662 lua_lock(L);
663 t = index2addr(L, idx);
664 api_check(L, ttistable(t), "table expected");
665 setobj2s(L, L->top, luaH_getint(hvalue(t), n));
666 api_incr_top(L);
667 lua_unlock(L);
668 return ttnov(L->top - 1);
669}
670
671
672LUA_API int lua_rawgetp(lua_State *L, int idx, const void *p) {

Callers 10

gctmFunction · 0.85
findloaderFunction · 0.85
luaL_refFunction · 0.85
luaL_unrefFunction · 0.85
pushargsFunction · 0.85
pushargsFunction · 0.85
pushargsFunction · 0.85
pushargsFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected