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

Function lua_rawget

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

Source from the content-addressed store, hash-verified

634
635
636LUA_API void lua_rawget (lua_State *L, int idx) {
637 StkId t;
638 lua_lock(L);
639 t = index2addr(L, idx);
640 api_check(L, ttistable(t), "table expected");
641 setobj2s(L, L->top - 1, luaH_get(hvalue(t), L->top - 1));
642 lua_unlock(L);
643}
644
645
646LUA_API void lua_rawgeti (lua_State *L, int idx, int n) {

Callers 3

luaB_rawgetFunction · 0.70
luaL_getmetafieldFunction · 0.70
luaL_findtableFunction · 0.70

Calls 2

index2addrFunction · 0.85
luaH_getFunction · 0.70

Tested by

no test coverage detected