MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_rawset

Function lua_rawset

freebsd/contrib/openzfs/module/lua/lapi.c:767–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765
766
767LUA_API void lua_rawset (lua_State *L, int idx) {
768 StkId t;
769 lua_lock(L);
770 api_checknelems(L, 2);
771 t = index2addr(L, idx);
772 api_check(L, ttistable(t), "table expected");
773 setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1);
774 invalidateTMcache(hvalue(t));
775 luaC_barrierback(L, gcvalue(t), L->top-1);
776 L->top -= 2;
777 lua_unlock(L);
778}
779
780
781LUA_API void lua_rawseti (lua_State *L, int idx, int n) {

Callers 1

luaB_rawsetFunction · 0.70

Calls 3

index2addrFunction · 0.85
luaC_barrierbackFunction · 0.85
luaH_setFunction · 0.70

Tested by

no test coverage detected