MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaH_getstr

Function luaH_getstr

3rd/lua-5.4.3/src/ltable.c:763–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761
762
763const TValue *luaH_getstr (Table *t, TString *key) {
764 if (key->tt == LUA_VSHRSTR)
765 return luaH_getshortstr(t, key);
766 else { /* for long strings, use generic case */
767 TValue ko;
768 setsvalue(cast(lua_State *, NULL), &ko, key);
769 return getgeneric(t, &ko, 0);
770 }
771}
772
773
774/*

Callers 1

luaX_newstringFunction · 0.85

Calls 2

luaH_getshortstrFunction · 0.85
getgenericFunction · 0.85

Tested by

no test coverage detected