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

Method FunctionType>

api/python/src/DWARF/editor/pyFunctionType.cpp:10–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace LIEF::dwarf::py {
9template<>
10void 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected