MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaH_setnum

Function luaH_setnum

Source/Misc/lua/src/lua.c:9748–9757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9746
9747
9748TValue *luaH_setnum (lua_State *L, Table *t, int key) {
9749const TValue *p = luaH_getnum(t, key);
9750if (p != luaO_nilobject)
9751return cast(TValue *, p);
9752else {
9753TValue k;
9754setnvalue(&k, cast_num(key));
9755return newkey(L, t, &k);
9756}
9757}
9758
9759
9760TValue *luaH_setstr (lua_State *L, Table *t, TString *key) {

Callers 5

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

Calls 2

luaH_getnumFunction · 0.85
newkeyFunction · 0.85

Tested by

no test coverage detected