MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / lua_rawseti

Function lua_rawseti

xrepo/packages/l/lua/port/lua/src/lapi.c:925–934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

923
924
925LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) {
926 Table *t;
927 lua_lock(L);
928 api_checknelems(L, 1);
929 t = gettable(L, idx);
930 luaH_setint(L, t, n, s2v(L->top - 1));
931 luaC_barrierback(L, obj2gco(t), s2v(L->top - 1));
932 L->top--;
933 lua_unlock(L);
934}
935
936
937LUA_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

gettableFunction · 0.85
luaH_setintFunction · 0.85
luaC_barrierbackFunction · 0.85

Tested by

no test coverage detected