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

Function lua_rawseti

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

Source from the content-addressed store, hash-verified

779
780
781LUA_API void lua_rawseti (lua_State *L, int idx, int n) {
782 StkId t;
783 lua_lock(L);
784 api_checknelems(L, 1);
785 t = index2addr(L, idx);
786 api_check(L, ttistable(t), "table expected");
787 luaH_setint(L, hvalue(t), n, L->top - 1);
788 luaC_barrierback(L, gcvalue(t), L->top-1);
789 L->top--;
790 lua_unlock(L);
791}
792
793
794LUA_API void lua_rawsetp (lua_State *L, int idx, const void *p) {

Callers 6

luaL_refFunction · 0.70
luaL_unrefFunction · 0.70
tinsertFunction · 0.70
tremoveFunction · 0.70
packFunction · 0.70
set2Function · 0.70

Calls 3

index2addrFunction · 0.85
luaH_setintFunction · 0.85
luaC_barrierbackFunction · 0.85

Tested by

no test coverage detected