| 688 | |
| 689 | |
| 690 | const TValue *luaH_getstr(Table *t, TString *key) { |
| 691 | if (key->tt == LUA_TSHRSTR) |
| 692 | return luaH_getshortstr(t, key); |
| 693 | else { /* for long strings, use generic case */ |
| 694 | TValue ko; |
| 695 | setsvalue(lua_cast(lua_State *, nullptr), &ko, key); |
| 696 | return getgeneric(t, &ko); |
| 697 | } |
| 698 | } |
| 699 | |
| 700 | |
| 701 | /* |
nothing calls this directly
no test coverage detected