MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / luaH_setint

Function luaH_setint

xrepo/packages/l/lua/port/lua/src/ltable.c:828–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826
827
828void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {
829 const TValue *p = luaH_getint(t, key);
830 if (isabstkey(p)) {
831 TValue k;
832 setivalue(&k, key);
833 luaH_newkey(L, t, &k, value);
834 }
835 else
836 setobj2t(L, cast(TValue *, p), value);
837}
838
839
840/*

Callers 3

luaH_resizeFunction · 0.85
collectvalidlinesFunction · 0.85
lua_rawsetiFunction · 0.85

Calls 3

luaH_getintFunction · 0.85
luaH_newkeyFunction · 0.70
castFunction · 0.50

Tested by

no test coverage detected