MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / aux_rawset

Function aux_rawset

extlibs/lua/src/lapi.c:854–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852
853
854static void aux_rawset (lua_State *L, int idx, TValue *key, int n) {
855 Table *t;
856 TValue *slot;
857 lua_lock(L);
858 api_checknelems(L, n);
859 t = gettable(L, idx);
860 slot = luaH_set(L, t, key);
861 setobj2t(L, slot, s2v(L->top - 1));
862 invalidateTMcache(t);
863 luaC_barrierback(L, obj2gco(t), s2v(L->top - 1));
864 L->top -= n;
865 lua_unlock(L);
866}
867
868
869LUA_API void lua_rawset (lua_State *L, int idx) {

Callers 2

lua_rawsetFunction · 0.85
lua_rawsetpFunction · 0.85

Calls 2

gettableFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected