| 84 | } |
| 85 | |
| 86 | void init_object(nb::module_& m) { |
| 87 | nb::class_<Object>(m, "Object") |
| 88 | .def("__hash__", [] (const Object& self) { |
| 89 | return hash(self); |
| 90 | }) |
| 91 | .def("__eq__", |
| 92 | [] (const Object& lhs, const Object& rhs) { |
| 93 | return hash(lhs) == hash(rhs); |
| 94 | }); |
| 95 | } |
| 96 | |
| 97 | void init_python_sink() { |
| 98 | spdlog::details::registry::instance().drop("LIEF"); |