MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_rawset

Function lua_rawset

depends/lua/src/lapi.c:801–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799
800
801LUA_API void lua_rawset (lua_State *L, int idx) {
802 StkId o;
803 TValue *slot;
804 lua_lock(L);
805 api_checknelems(L, 2);
806 o = index2addr(L, idx);
807 api_check(L, ttistable(o), "table expected");
808 slot = luaH_set(L, hvalue(o), L->top - 2);
809 setobj2t(L, slot, L->top - 1);
810 invalidateTMcache(hvalue(o));
811 luaC_barrierback(L, hvalue(o), L->top-1);
812 L->top -= 2;
813 lua_unlock(L);
814}
815
816
817LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) {

Callers 8

PushInterfaceKeysMethod · 0.85
dfhack_event_newindexFunction · 0.85
dfhack_pen_newindexFunction · 0.85
SaveInTableMethod · 0.85
AssociateIdMethod · 0.85
RenderTypeChildrenFunction · 0.85
luaB_rawsetFunction · 0.85
db_sethookFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected