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

Function luaH_setstr

lua/ltable.c:621–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619
620
621TValue *luaH_setstr (lua_State *L, Table *t, TString *key) {
622 const TValue *p = luaH_getstr(t, key);
623 if (p != luaO_nilobject)
624 return cast(TValue *, p);
625 else {
626 TValue k;
627 setsvalue(L, &k, key);
628 return newkey(L, t, &k);
629 }
630}
631
632
633static int unbound_search (Table *t, unsigned int j) {

Callers 2

luaX_newstringFunction · 0.85
adjust_varargsFunction · 0.85

Calls 2

luaH_getstrFunction · 0.85
newkeyFunction · 0.85

Tested by

no test coverage detected