| 63 | // default constructor. |
| 64 | template <class T> |
| 65 | T GetResultValue(Result<T> result) { |
| 66 | if (ARROW_PREDICT_TRUE(result.ok())) { |
| 67 | return *std::move(result); |
| 68 | } else { |
| 69 | int r = internal::check_status(result.status()); // takes the GIL |
| 70 | assert(r == -1); // should have errored out |
| 71 | ARROW_UNUSED(r); |
| 72 | return {}; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | /// \brief Wrap a Result and return the corresponding Python object. |
| 77 | /// |
nothing calls this directly
no test coverage detected