MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaH_setint

Function luaH_setint

freebsd/contrib/openzfs/module/lua/ltable.c:521–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

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