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

Function luaH_setint

depends/lua/src/ltable.c:618–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616
617
618void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {
619 const TValue *p = luaH_getint(t, key);
620 TValue *cell;
621 if (p != luaO_nilobject)
622 cell = cast(TValue *, p);
623 else {
624 TValue k;
625 setivalue(&k, key);
626 cell = luaH_newkey(L, t, &k);
627 }
628 setobj2t(L, cell, value);
629}
630
631
632static lua_Unsigned unbound_search (Table *t, lua_Unsigned j) {

Callers 5

luaV_executeFunction · 0.85
init_registryFunction · 0.85
luaH_resizeFunction · 0.85
collectvalidlinesFunction · 0.85
lua_rawsetiFunction · 0.85

Calls 3

luaH_getintFunction · 0.85
castFunction · 0.85
luaH_newkeyFunction · 0.85

Tested by

no test coverage detected