| 787 | |
| 788 | |
| 789 | const 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 | /* |
no test coverage detected