MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaH_setnum

Function luaH_setnum

lua/ltable.c:609–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607
608
609TValue *luaH_setnum (lua_State *L, Table *t, int key) {
610 const TValue *p = luaH_getnum(t, key);
611 if (p != luaO_nilobject)
612 return cast(TValue *, p);
613 else {
614 TValue k;
615 setnvalue(&k, cast_num(key));
616 return newkey(L, t, &k);
617 }
618}
619
620
621TValue *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