MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / lua_rawget

Function lua_rawget

lib/lua/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.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