MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / lua_rawseti

Function lua_rawseti

src/vm/luavm/lua/lapi.c:790–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788
789
790LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) {
791 StkId o;
792 Table *t;
793 lua_lock(L);
794 api_checknelems(L, 1);
795 o = index2addr(L, idx);
796 api_check(L, ttistable(o), "table expected");
797 t = hvalue(o);
798 luaH_setint(L, t, n, L->top - 1);
799 luaC_barrierback(L, t, L->top-1);
800 L->top--;
801 lua_unlock(L);
802}
803
804
805LUA_API void lua_rawsetp (lua_State *L, int idx, const void *p) {

Callers 7

RunMethod · 0.85
createargtableFunction · 0.85
luaL_refFunction · 0.85
luaL_unrefFunction · 0.85
packFunction · 0.85
addtoclibFunction · 0.85
createsearcherstableFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_setintFunction · 0.85

Tested by

no test coverage detected