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

Function lua_rawseti

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

Source from the content-addressed store, hash-verified

919
920
921LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) {
922 Table *t;
923 lua_lock(L);
924 api_checknelems(L, 1);
925 t = gettable(L, idx);
926 luaH_setint(L, t, n, s2v(L->top.p - 1));
927 luaC_barrierback(L, obj2gco(t), s2v(L->top.p - 1));
928 L->top.p--;
929 lua_unlock(L);
930}
931
932
933LUA_API int lua_setmetatable (lua_State *L, int objindex) {

Callers 5

createargtableFunction · 0.70
luaL_refFunction · 0.70
luaL_unrefFunction · 0.70
addtoclibFunction · 0.70
createsearcherstableFunction · 0.70

Calls 3

luaC_barrierbackFunction · 0.85
gettableFunction · 0.70
luaH_setintFunction · 0.70

Tested by

no test coverage detected