MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / lua_rawget

Function lua_rawget

xrepo/packages/l/lua/port/lua/src/lapi.c:736–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734
735
736LUA_API int lua_rawget (lua_State *L, int idx) {
737 Table *t;
738 const TValue *val;
739 lua_lock(L);
740 api_checknelems(L, 1);
741 t = gettable(L, idx);
742 val = luaH_get(t, s2v(L->top - 1));
743 L->top--; /* remove key */
744 return finishrawget(L, val);
745}
746
747
748LUA_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.85
finishrawgetFunction · 0.85
luaH_getFunction · 0.70

Tested by

no test coverage detected