MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaH_getstr

Function luaH_getstr

extlibs/lua/src/ltable.c:727–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725
726
727const TValue *luaH_getstr (Table *t, TString *key) {
728 if (key->tt == LUA_VSHRSTR)
729 return luaH_getshortstr(t, key);
730 else { /* for long strings, use generic case */
731 TValue ko;
732 setsvalue(cast(lua_State *, NULL), &ko, key);
733 return getgeneric(t, &ko);
734 }
735}
736
737
738/*

Callers

nothing calls this directly

Calls 2

luaH_getshortstrFunction · 0.85
getgenericFunction · 0.85

Tested by

no test coverage detected