| 460 | *output = HAPropsSI(Output, Name1, *Prop1, Name2, *Prop2, Name3, *Prop3); |
| 461 | } |
| 462 | EXPORT_CODE double CONVENTION HAProps(const char* Output, const char* Name1, double Prop1, const char* Name2, double Prop2, const char* Name3, |
| 463 | double Prop3) { |
| 464 | fpu_reset_guard guard; |
| 465 | try { |
| 466 | return HumidAir::HAProps(std::string(Output), std::string(Name1), Prop1, std::string(Name2), Prop2, std::string(Name3), Prop3); |
| 467 | } catch (std::exception& e) { |
| 468 | CoolProp::set_error_string(e.what()); |
| 469 | } catch (...) { |
| 470 | CoolProp::set_error_string("Undefined error"); |
| 471 | } |
| 472 | return _HUGE; |
| 473 | } |
| 474 | EXPORT_CODE void CONVENTION haprops_(const char* Output, const char* Name1, const double* Prop1, const char* Name2, const double* Prop2, |
| 475 | const char* Name3, const double* Prop3, double* output) { |
| 476 | *output = HAProps(Output, Name1, *Prop1, Name2, *Prop2, Name3, *Prop3); |
no test coverage detected