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