| 262 | /* ------------------------------------------------------------------ */ |
| 263 | |
| 264 | static lean_object *raise_io_error(const char *msg) { |
| 265 | return lean_io_result_mk_error( |
| 266 | lean_mk_io_user_error(lean_mk_string(msg))); |
| 267 | } |
| 268 | |
| 269 | /* If a Python exception is set, fetch a string for it, clear, and return |
| 270 | * a Lean IO error result. Caller transfers ownership. */ |
no outgoing calls
no test coverage detected