Wrap an owned PyObject as IO Py; if NULL, propagate any pending Py error. */
| 304 | |
| 305 | /* Wrap an owned PyObject as IO Py; if NULL, propagate any pending Py error. */ |
| 306 | static lean_object *ok_owned_or_err(PyObject *o) { |
| 307 | if (!o) return raise_py_error(); |
| 308 | return lean_io_result_mk_ok(wrap_pyobject(o)); |
| 309 | } |
| 310 | |
| 311 | /* ------------------------------------------------------------------ */ |
| 312 | /* initialize */ |
no test coverage detected