| 388 | return 0; |
| 389 | } |
| 390 | EXPORT_CODE long CONVENTION get_fluid_param_string(const char* fluid, const char* param, char* Output, int n) { |
| 391 | try { |
| 392 | std::string s = CoolProp::get_fluid_param_string(std::string(fluid), std::string(param)); |
| 393 | str2buf(s, Output, n); |
| 394 | return 1; |
| 395 | } catch (std::exception& e) { |
| 396 | CoolProp::set_error_string(e.what()); |
| 397 | } catch (...) { |
| 398 | CoolProp::set_error_string("Undefined error"); |
| 399 | } |
| 400 | return 0; |
| 401 | } |
| 402 | EXPORT_CODE long CONVENTION get_fluid_param_string_len(const char* fluid, const char* param) { |
| 403 | try { |
| 404 | std::string s = CoolProp::get_fluid_param_string(std::string(fluid), std::string(param)); |
nothing calls this directly
no test coverage detected