| 331 | } |
| 332 | |
| 333 | var runtime_type::parse_inc(const var &a, const var &b) |
| 334 | { |
| 335 | if (a.usable()) { |
| 336 | if (b.usable()) |
| 337 | throw runtime_error("Unsupported operator operations(Inc)."); |
| 338 | else if (a.is_type_of<numeric>()) |
| 339 | return a.val<numeric>()++; |
| 340 | else { |
| 341 | var oldt = copy(a); |
| 342 | ++a; |
| 343 | return oldt; |
| 344 | } |
| 345 | } |
| 346 | else { |
| 347 | if (!b.usable()) |
| 348 | throw runtime_error("Unsupported operator operations(Inc)."); |
| 349 | else |
| 350 | return ++b; |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | var runtime_type::parse_dec(const var &a, const var &b) |
| 355 | { |
nothing calls this directly
no test coverage detected