MCPcopy Create free account
hub / github.com/crownengine/crown / lua_rawgeti

Function lua_rawgeti

3rdparty/luajit/src/lj_api.c:833–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833LUA_API void lua_rawgeti(lua_State *L, int idx, int n)
834{
835 cTValue *v, *t = index2adr(L, idx);
836 lj_checkapi(tvistab(t), "stack slot %d is not a table", idx);
837 v = lj_tab_getint(tabV(t), n);
838 if (v) {
839 copyTV(L, L->top, v);
840 } else {
841 setnilV(L->top);
842 }
843 incr_top(L);
844}
845
846LUA_API int lua_getmetatable(lua_State *L, int idx)
847{

Callers 5

auxsortFunction · 0.70
handle_scriptFunction · 0.70
luaL_refFunction · 0.70
luaL_unrefFunction · 0.70
lj_cf_package_requireFunction · 0.70

Calls 2

copyTVFunction · 0.85
index2adrFunction · 0.70

Tested by

no test coverage detected