| 425 | } |
| 426 | |
| 427 | inline static Boxed_Value oper(Operators::Opers t_oper, const Boxed_Value &t_lhs) |
| 428 | { |
| 429 | switch (get_common_type(t_lhs)) { |
| 430 | case Common_Types::t_int32: |
| 431 | return go<int32_t>(t_oper, t_lhs); |
| 432 | case Common_Types::t_uint8: |
| 433 | return go<uint8_t>(t_oper, t_lhs); |
| 434 | case Common_Types::t_int8: |
| 435 | return go<int8_t>(t_oper, t_lhs); |
| 436 | case Common_Types::t_uint16: |
| 437 | return go<uint16_t>(t_oper, t_lhs); |
| 438 | case Common_Types::t_int16: |
| 439 | return go<int16_t>(t_oper, t_lhs); |
| 440 | case Common_Types::t_uint32: |
| 441 | return go<uint32_t>(t_oper, t_lhs); |
| 442 | case Common_Types::t_uint64: |
| 443 | return go<uint64_t>(t_oper, t_lhs); |
| 444 | case Common_Types::t_int64: |
| 445 | return go<int64_t>(t_oper, t_lhs); |
| 446 | case Common_Types::t_double: |
| 447 | return go<double>(t_oper, t_lhs); |
| 448 | case Common_Types::t_float: |
| 449 | return go<float>(t_oper, t_lhs); |
| 450 | case Common_Types::t_long_double: |
| 451 | return go<long double>(t_oper, t_lhs); |
| 452 | } |
| 453 | |
| 454 | throw chaiscript::detail::exception::bad_any_cast(); |
| 455 | } |
| 456 | |
| 457 | |
| 458 | inline static Boxed_Value oper(Operators::Opers t_oper, const Boxed_Value &t_lhs, const Boxed_Value &t_rhs) |
nothing calls this directly
no test coverage detected