| 8 | namespace LIEF::dwarf::py { |
| 9 | template<> |
| 10 | void create<dw::editor::FunctionType>(nb::module_& m) { |
| 11 | nb::class_<dw::editor::FunctionType, dw::editor::Type> F(m, "FunctionType", |
| 12 | R"doc( |
| 13 | This class represents a function type (``DW_TAG_subroutine_type``) |
| 14 | )doc"_doc |
| 15 | ); |
| 16 | |
| 17 | nb::class_<dw::editor::FunctionType::Parameter> FP(F, "Parameter", |
| 18 | "This class represents a function's parameter"_doc |
| 19 | ); |
| 20 | F |
| 21 | .def("set_return_type", &dw::editor::FunctionType::set_return_type, |
| 22 | "Set the return type of this function"_doc, |
| 23 | "type"_a, nb::rv_policy::reference_internal) |
| 24 | |
| 25 | .def("add_parameter", &dw::editor::FunctionType::add_parameter, |
| 26 | "Add a parameter"_doc, "type"_a) |
| 27 | ; |
| 28 | } |
| 29 | |
| 30 | } |
nothing calls this directly
no outgoing calls
no test coverage detected