| 296 | } |
| 297 | } |
| 298 | EXPORT_CODE long CONVENTION PhaseSI(const char* Name1, double Prop1, const char* Name2, double Prop2, const char* FluidName, char* phase, int n) { |
| 299 | fpu_reset_guard guard; |
| 300 | try { |
| 301 | std::string s = CoolProp::PhaseSI(std::string(Name1), Prop1, std::string(Name2), Prop2, std::string(FluidName)); |
| 302 | str2buf(s, phase, n); |
| 303 | return 1; |
| 304 | } catch (std::exception& e) { |
| 305 | CoolProp::set_error_string(e.what()); |
| 306 | } catch (...) { |
| 307 | CoolProp::set_error_string("Undefined error"); |
| 308 | } |
| 309 | return 0; |
| 310 | } |
| 311 | /* |
| 312 | * EXPORT_CODE double CONVENTION PropsSIZ(const char *Output, const char *Name1, double Prop1, const char *Name2, double Prop2, const char * FluidName, const double *z, int n) |
| 313 | { |
nothing calls this directly
no test coverage detected