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

Function lua_rawget

third-party/lua-5.4.6/src/lapi.c:732–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730
731
732LUA_API int lua_rawget (lua_State *L, int idx) {
733 Table *t;
734 const TValue *val;
735 lua_lock(L);
736 api_checknelems(L, 1);
737 t = gettable(L, idx);
738 val = luaH_get(t, s2v(L->top.p - 1));
739 L->top.p--; /* remove key */
740 return finishrawget(L, val);
741}
742
743
744LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) {

Callers 5

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

Calls 3

gettableFunction · 0.70
luaH_getFunction · 0.70
finishrawgetFunction · 0.70

Tested by

no test coverage detected