| 670 | if (r < 0) return raise_py_error(); |
| 671 | return lean_io_result_mk_ok(lean_int64_to_int((int64_t) r)); |
| 672 | } |
| 673 | |
| 674 | LEAN_EXPORT lean_obj_res lean_py_eq(b_lean_obj_arg a, b_lean_obj_arg b, lean_obj_arg world) { |
| 675 | (void)world; ENSURE_INIT(); WITH_GIL(); |
| 676 | int r = p_PyObject_RichCompareBool(unwrap_pyobject(a), unwrap_pyobject(b), Py_EQ); |
| 677 | if (r < 0) return raise_py_error(); |
| 678 | return lean_io_result_mk_ok(lean_box(r ? 1 : 0)); |
nothing calls this directly
no test coverage detected