MCPcopy Create free account
hub / github.com/lief-project/LIEF / init_debug_location

Function init_debug_location

api/python/src/pyLIEF.cpp:204–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void 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
217void init(nb::module_& m) {

Callers 1

initFunction · 0.85

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected