MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaH_setint

Function luaH_setint

third-party/lua-5.3.5/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.70
init_registryFunction · 0.70
luaH_resizeFunction · 0.70
collectvalidlinesFunction · 0.70
lua_rawsetiFunction · 0.70

Calls 2

luaH_getintFunction · 0.70
luaH_newkeyFunction · 0.70

Tested by

no test coverage detected