| 585 | |
| 586 | |
| 587 | void luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2) { |
| 588 | TValue temp; |
| 589 | if (luaV_tonumber(p1, &temp) == NULL) |
| 590 | p2 = p1; /* first operand is wrong */ |
| 591 | luaG_typeerror(L, p2, "perform arithmetic on"); |
| 592 | } |
| 593 | |
| 594 | |
| 595 | int luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) { |
no test coverage detected