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

Function luaH_setint

extlibs/lua/src/ltable.c:770–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768
769
770void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) {
771 const TValue *p = luaH_getint(t, key);
772 TValue *cell;
773 if (!isabstkey(p))
774 cell = cast(TValue *, p);
775 else {
776 TValue k;
777 setivalue(&k, key);
778 cell = luaH_newkey(L, t, &k);
779 }
780 setobj2t(L, cell, value);
781}
782
783
784/*

Callers 4

init_registryFunction · 0.85
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