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

Function lua_rawget

ThirdParty/lua/lua/lapi.c:627–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625
626
627LUA_API int lua_rawget (lua_State *L, int idx) {
628 StkId t;
629 lua_lock(L);
630 t = index2addr(L, idx);
631 api_check(ttistable(t), "table expected");
632 setobj2s(L, L->top - 1, luaH_get(hvalue(t), L->top - 1));
633 lua_unlock(L);
634 return ttnov(L->top - 1);
635}
636
637
638LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) {

Callers 6

luaB_rawgetFunction · 0.85
luaL_getmetafieldFunction · 0.85
luaL_findtableFunction · 0.85
checktabFunction · 0.85
hookfFunction · 0.85
db_gethookFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_getFunction · 0.85

Tested by

no test coverage detected