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

Function luaH_setnum

app/redis-6.2.6/deps/lua/src/ltable.c:508–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506
507
508TValue *luaH_setnum (lua_State *L, Table *t, int key) {
509 const TValue *p = luaH_getnum(t, key);
510 if (p != luaO_nilobject)
511 return cast(TValue *, p);
512 else {
513 TValue k;
514 setnvalue(&k, cast_num(key));
515 return newkey(L, t, &k);
516 }
517}
518
519
520TValue *luaH_setstr (lua_State *L, Table *t, TString *key) {

Callers 5

luaV_executeFunction · 0.85
resizeFunction · 0.85
collectvalidlinesFunction · 0.85
adjust_varargsFunction · 0.85
lua_rawsetiFunction · 0.85

Calls 2

luaH_getnumFunction · 0.85
newkeyFunction · 0.85

Tested by

no test coverage detected