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

Function lua_seti

ThirdParty/lua/lua/lapi.c:757–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755
756
757LUA_API void lua_seti (lua_State *L, int idx, lua_Integer n) {
758 StkId t;
759 lua_lock(L);
760 api_checknelems(L, 1);
761 t = index2addr(L, idx);
762 setivalue(L->top++, n);
763 luaV_settable(L, t, L->top - 1, L->top - 2);
764 L->top -= 2; /* pop value and key */
765 lua_unlock(L);
766}
767
768
769LUA_API void lua_rawset (lua_State *L, int idx) {

Callers

nothing calls this directly

Calls 2

index2addrFunction · 0.85
luaV_settableFunction · 0.85

Tested by

no test coverage detected