| 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; |
| 665 | fpu_reset_guard guard; |
| 666 | try { |
| 667 | shared_ptr<CoolProp::AbstractState>& AS = handle_manager.get(handle); |
| 668 | return AS->specify_phase(CoolProp::get_phase_index(std::string(phase))); |
| 669 | } catch (...) { |
| 670 | HandleException(errcode, message_buffer, buffer_length); |
| 671 | } |
| 672 | } |
| 673 | EXPORT_CODE void CONVENTION AbstractState_unspecify_phase(const long handle, long* errcode, char* message_buffer, const long buffer_length) { |
| 674 | *errcode = 0; |
| 675 | fpu_reset_guard guard; |
nothing calls this directly
no test coverage detected