MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaH_setint

Function luaH_setint

src/Chain/libraries/glua/ltable.cpp:733–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731
732
733void luaH_setint(lua_State *L, Table *t, lua_Integer key, TValue *value) {
734 const TValue *p = luaH_getint(t, key);
735 TValue *cell;
736 if (p != luaO_nilobject)
737 cell = lua_cast(TValue *, p);
738 else {
739 TValue k;
740 setivalue(&k, key);
741 cell = luaH_newkey(L, t, &k);
742 }
743 setobj2t(L, cell, value);
744}
745
746
747static int unbound_search(Table *t, unsigned int j) {

Callers 5

collectvalidlinesFunction · 0.85
vmcaseFunction · 0.85
luaH_resizeFunction · 0.85
init_registryFunction · 0.85
lua_rawsetiFunction · 0.85

Calls 2

luaH_getintFunction · 0.85
luaH_newkeyFunction · 0.85

Tested by

no test coverage detected