mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Enhance Python binding
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
|
||||
#include "pyMachO.hpp"
|
||||
|
||||
|
||||
namespace LIEF {
|
||||
namespace MachO {
|
||||
|
||||
template<class T>
|
||||
using getter_t = T (DataInCode::*)(void) const;
|
||||
|
||||
@@ -30,7 +34,8 @@ template<class T>
|
||||
using setter_t = void (DataInCode::*)(T);
|
||||
|
||||
|
||||
void init_MachO_DataInCode_class(py::module& m) {
|
||||
template<>
|
||||
void create<DataInCode>(py::module& m) {
|
||||
|
||||
// Init Iterator
|
||||
init_ref_iterator<DataInCode::it_entries>(m);
|
||||
@@ -74,3 +79,5 @@ void init_MachO_DataInCode_class(py::module& m) {
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user