MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaH_setint

Function luaH_setint

third-party/lua-5.2.4/src/ltable.c:518–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516
517
518void luaH_setint (lua_State *L, Table *t, int key, TValue *value) {
519 const TValue *p = luaH_getint(t, key);
520 TValue *cell;
521 if (p != luaO_nilobject)
522 cell = cast(TValue *, p);
523 else {
524 TValue k;
525 setnvalue(&k, cast_num(key));
526 cell = luaH_newkey(L, t, &k);
527 }
528 setobj2t(L, cell, value);
529}
530
531
532static int unbound_search (Table *t, unsigned int j) {

Callers 5

luaV_executeFunction · 0.70
init_registryFunction · 0.70
luaH_resizeFunction · 0.70
collectvalidlinesFunction · 0.70
lua_rawsetiFunction · 0.70

Calls 2

luaH_getintFunction · 0.70
luaH_newkeyFunction · 0.70

Tested by

no test coverage detected