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

Function luaH_setstr

Source/Misc/lua/src/lua.c:9760–9769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9758
9759
9760TValue *luaH_setstr (lua_State *L, Table *t, TString *key) {
9761const TValue *p = luaH_getstr(t, key);
9762if (p != luaO_nilobject)
9763return cast(TValue *, p);
9764else {
9765TValue k;
9766setsvalue(L, &k, key);
9767return newkey(L, t, &k);
9768}
9769}
9770
9771
9772static int unbound_search (Table *t, unsigned int j) {

Callers 2

adjust_varargsFunction · 0.85
luaX_newstringFunction · 0.85

Calls 2

luaH_getstrFunction · 0.85
newkeyFunction · 0.85

Tested by

no test coverage detected