| 9732 | |
| 9733 | |
| 9734 | TValue *luaH_set (lua_State *L, Table *t, const TValue *key) { |
| 9735 | const TValue *p = luaH_get(t, key); |
| 9736 | t->flags = 0; |
| 9737 | if (p != luaO_nilobject) |
| 9738 | return cast(TValue *, p); |
| 9739 | else { |
| 9740 | if (ttisnil(key)) luaG_runerror(L, "table index is nil"); |
| 9741 | else if (ttisnumber(key) && luai_numisnan(nvalue(key))) |
| 9742 | luaG_runerror(L, "table index is NaN"); |
| 9743 | return newkey(L, t, key); |
| 9744 | } |
| 9745 | } |
| 9746 | |
| 9747 | |
| 9748 | TValue *luaH_setnum (lua_State *L, Table *t, int key) { |
no test coverage detected