MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaH_getstr

Function luaH_getstr

third-party/lua-5.4.6/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.70

Calls 2

luaH_getshortstrFunction · 0.70
getgenericFunction · 0.70

Tested by

no test coverage detected