MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaH_setint

Function luaH_setint

3rd/lua-5.4.3/src/ltable.c:819–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817
818
819void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {
820 const TValue *p = luaH_getint(t, key);
821 if (isabstkey(p)) {
822 TValue k;
823 setivalue(&k, key);
824 luaH_newkey(L, t, &k, value);
825 }
826 else
827 setobj2t(L, cast(TValue *, p), value);
828}
829
830
831/*

Callers 3

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