MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaH_setint

Function luaH_setint

ThirdParty/lua/lua/ltable.c:580–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578
579
580void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {
581 const TValue *p = luaH_getint(t, key);
582 TValue *cell;
583 if (p != luaO_nilobject)
584 cell = cast(TValue *, p);
585 else {
586 TValue k;
587 setivalue(&k, key);
588 cell = luaH_newkey(L, t, &k);
589 }
590 setobj2t(L, cell, value);
591}
592
593
594static int unbound_search (Table *t, unsigned int j) {

Callers 5

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

Calls 2

luaH_getintFunction · 0.85
luaH_newkeyFunction · 0.85

Tested by

no test coverage detected