MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_rawseti

Function lua_rawseti

ThirdParty/lua/lua/lapi.c:785–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783
784
785LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) {
786 StkId o;
787 Table *t;
788 lua_lock(L);
789 api_checknelems(L, 1);
790 o = index2addr(L, idx);
791 api_check(ttistable(o), "table expected");
792 t = hvalue(o);
793 luaH_setint(L, t, n, L->top - 1);
794 luaC_barrierback(L, t, L->top-1);
795 L->top--;
796 lua_unlock(L);
797}
798
799
800LUA_API void lua_rawsetp (lua_State *L, int idx, const void *p) {

Callers 5

luaL_refFunction · 0.85
luaL_unrefFunction · 0.85
packFunction · 0.85
addtoclibFunction · 0.85
createsearcherstableFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_setintFunction · 0.85

Tested by

no test coverage detected