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

Function lua_rawseti

third-party/lua-5.5.0/src/lapi.c:952–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

950
951
952LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) {
953 Table *t;
954 lua_lock(L);
955 api_checkpop(L, 1);
956 t = gettable(L, idx);
957 luaH_setint(L, t, n, s2v(L->top.p - 1));
958 luaC_barrierback(L, obj2gco(t), s2v(L->top.p - 1));
959 L->top.p--;
960 lua_unlock(L);
961}
962
963
964LUA_API int lua_setmetatable (lua_State *L, int objindex) {

Callers 4

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

Calls 3

luaC_barrierbackFunction · 0.85
gettableFunction · 0.70
luaH_setintFunction · 0.70

Tested by

no test coverage detected