| 355 | return -1; |
| 356 | } |
| 357 | EXPORT_CODE long CONVENTION get_global_param_string(const char* param, char* Output, int n) { |
| 358 | try { |
| 359 | std::string s = CoolProp::get_global_param_string(param); |
| 360 | str2buf(s, Output, n); |
| 361 | return 1; |
| 362 | } catch (std::exception& e) { |
| 363 | CoolProp::set_error_string(e.what()); |
| 364 | } catch (...) { |
| 365 | CoolProp::set_error_string("Undefined error"); |
| 366 | } |
| 367 | return 0; |
| 368 | } |
| 369 | EXPORT_CODE long CONVENTION get_parameter_information_string(const char* param, char* Output, int n) { |
| 370 | try { |
| 371 | int key = CoolProp::get_parameter_index(param); |
nothing calls this directly
no test coverage detected