| 649 | return _HUGE; |
| 650 | } |
| 651 | EXPORT_CODE void CONVENTION AbstractState_update(const long handle, const long input_pair, const double value1, const double value2, long* errcode, |
| 652 | char* message_buffer, const long buffer_length) { |
| 653 | *errcode = 0; |
| 654 | fpu_reset_guard guard; |
| 655 | try { |
| 656 | shared_ptr<CoolProp::AbstractState>& AS = handle_manager.get(handle); |
| 657 | AS->update(static_cast<CoolProp::input_pairs>(input_pair), value1, value2); |
| 658 | } catch (...) { |
| 659 | HandleException(errcode, message_buffer, buffer_length); |
| 660 | } |
| 661 | } |
| 662 | EXPORT_CODE void CONVENTION AbstractState_specify_phase(const long handle, const char* phase, long* errcode, char* message_buffer, |
| 663 | const long buffer_length) { |
| 664 | *errcode = 0; |
no test coverage detected