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

Function lua_rawseti

depends/lua/src/lapi.c:817–827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815
816
817LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) {
818 StkId o;
819 lua_lock(L);
820 api_checknelems(L, 1);
821 o = index2addr(L, idx);
822 api_check(L, ttistable(o), "table expected");
823 luaH_setint(L, hvalue(o), n, L->top - 1);
824 luaC_barrierback(L, hvalue(o), L->top-1);
825 L->top--;
826 lua_unlock(L);
827}
828
829
830LUA_API void lua_rawsetp (lua_State *L, int idx, const void *p) {

Callers 15

OpenMethod · 0.85
dfhack_timeoutFunction · 0.85
dfhack_timeout_activeFunction · 0.85
cancel_timersFunction · 0.85
run_timersFunction · 0.85
build_metatableMethod · 0.85
hotkey_pushBindArrayFunction · 0.85
internal_getMemRangesFunction · 0.85
internal_runCommandFunction · 0.85
PushVectorFunction · 0.85
createargtableFunction · 0.85
luaL_refFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaH_setintFunction · 0.85

Tested by

no test coverage detected