MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_rawget

Function lua_rawget

3rd/lua-5.4.3/src/lapi.c:726–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724
725
726LUA_API int lua_rawget (lua_State *L, int idx) {
727 Table *t;
728 const TValue *val;
729 lua_lock(L);
730 api_checknelems(L, 1);
731 t = gettable(L, idx);
732 val = luaH_get(t, s2v(L->top - 1));
733 L->top--; /* remove key */
734 return finishrawget(L, val);
735}
736
737
738LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) {

Callers 5

luaB_rawgetFunction · 0.85
luaL_getmetafieldFunction · 0.85
checkfieldFunction · 0.85
hookfFunction · 0.85
db_gethookFunction · 0.85

Calls 3

gettableFunction · 0.85
luaH_getFunction · 0.85
finishrawgetFunction · 0.85

Tested by

no test coverage detected