MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_rawget

Function lua_rawget

third-party/lua-5.3.5/src/lapi.c:647–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645
646
647LUA_API int lua_rawget (lua_State *L, int idx) {
648 StkId t;
649 lua_lock(L);
650 t = index2addr(L, idx);
651 api_check(L, ttistable(t), "table expected");
652 setobj2s(L, L->top - 1, luaH_get(hvalue(t), L->top - 1));
653 lua_unlock(L);
654 return ttnov(L->top - 1);
655}
656
657
658LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) {

Callers 6

luaB_rawgetFunction · 0.70
luaL_getmetafieldFunction · 0.70
luaL_findtableFunction · 0.70
checkfieldFunction · 0.70
hookfFunction · 0.70
db_gethookFunction · 0.70

Calls 2

index2addrFunction · 0.70
luaH_getFunction · 0.70

Tested by

no test coverage detected