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

Function luaH_setint

third-party/lua-5.4.6/src/ltable.c:845–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843
844
845void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {
846 const TValue *p = luaH_getint(t, key);
847 if (isabstkey(p)) {
848 TValue k;
849 setivalue(&k, key);
850 luaH_newkey(L, t, &k, value);
851 }
852 else
853 setobj2t(L, cast(TValue *, p), value);
854}
855
856
857/*

Callers 3

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