| 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)); |
| 405 | return static_cast<long>(s.size()); |
| 406 | } catch (std::exception& e) { |
| 407 | CoolProp::set_error_string(e.what()); |
| 408 | } catch (...) { |
| 409 | CoolProp::set_error_string("Undefined error"); |
| 410 | } |
| 411 | return -1; |
| 412 | } |
| 413 | EXPORT_CODE void CONVENTION set_config_string(const char* key, const char* val) { |
| 414 | try { |
| 415 | CoolProp::set_config_string(CoolProp::config_string_to_key(std::string(key)), std::string(val)); |
nothing calls this directly
no test coverage detected