MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaH_getstr

Function luaH_getstr

lib/lua/src/ltable.c:789–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787
788
789const TValue *luaH_getstr (Table *t, TString *key) {
790 if (key->tt == LUA_VSHRSTR)
791 return luaH_getshortstr(t, key);
792 else { /* for long strings, use generic case */
793 TValue ko;
794 setsvalue(cast(lua_State *, NULL), &ko, key);
795 return getgeneric(t, &ko, 0);
796 }
797}
798
799
800/*

Callers 1

luaX_newstringFunction · 0.85

Calls 2

luaH_getshortstrFunction · 0.85
getgenericFunction · 0.85

Tested by

no test coverage detected