| 24 | } |
| 25 | |
| 26 | HighsStatus interpretCallStatus(const HighsLogOptions log_options, |
| 27 | const HighsStatus call_status, |
| 28 | const HighsStatus from_return_status, |
| 29 | const std::string& message) { |
| 30 | HighsStatus to_return_status; |
| 31 | to_return_status = worseStatus(call_status, from_return_status); |
| 32 | if (call_status != HighsStatus::kOk) |
| 33 | highsLogDev(log_options, HighsLogType::kWarning, |
| 34 | "%s return of HighsStatus::%s\n", message.c_str(), |
| 35 | highsStatusToString(call_status).c_str()); |
| 36 | return to_return_status; |
| 37 | } |
| 38 | |
| 39 | HighsStatus worseStatus(const HighsStatus status0, const HighsStatus status1) { |
| 40 | HighsStatus return_status = HighsStatus::kError; |
no test coverage detected