| 772 | |
| 773 | |
| 774 | const TValue *luaH_getstr (Table *t, TString *key) { |
| 775 | if (key->tt == LUA_VSHRSTR) |
| 776 | return luaH_getshortstr(t, key); |
| 777 | else { /* for long strings, use generic case */ |
| 778 | TValue ko; |
| 779 | setsvalue(cast(lua_State *, NULL), &ko, key); |
| 780 | return getgeneric(t, &ko, 0); |
| 781 | } |
| 782 | } |
| 783 | |
| 784 | |
| 785 | /* |
no test coverage detected