MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaH_setint

Function luaH_setint

lib/lua/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.85
collectvalidlinesFunction · 0.85
lua_rawsetiFunction · 0.85

Calls 2

luaH_getintFunction · 0.85
luaH_newkeyFunction · 0.85

Tested by

no test coverage detected