| 202 | } |
| 203 | |
| 204 | void init_debug_location(nb::module_& m) { |
| 205 | nb::class_<LIEF::debug_location_t>(m, "debug_location_t") |
| 206 | .def_rw("line", &LIEF::debug_location_t::line) |
| 207 | .def_rw("file", &LIEF::debug_location_t::file) |
| 208 | .def("__repr__", |
| 209 | [] (const LIEF::debug_location_t& loc) { |
| 210 | return fmt::format("<debug_location_t: {}:{}>", loc.file, loc.line); |
| 211 | } |
| 212 | ) |
| 213 | ; |
| 214 | } |
| 215 | |
| 216 | |
| 217 | void init(nb::module_& m) { |