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:
@@ -28,6 +28,9 @@
|
||||
|
||||
#define PY_ENUM(x) LIEF::MachO::to_string(x), x
|
||||
|
||||
namespace LIEF {
|
||||
namespace MachO {
|
||||
|
||||
template<class T>
|
||||
using getter_t = T (DataCodeEntry::*)(void) const;
|
||||
|
||||
@@ -35,7 +38,8 @@ template<class T>
|
||||
using setter_t = void (DataCodeEntry::*)(T);
|
||||
|
||||
|
||||
void init_MachO_DataCodeEntry_class(py::module& m) {
|
||||
template<>
|
||||
void create<DataCodeEntry>(py::module& m) {
|
||||
|
||||
|
||||
py::class_<DataCodeEntry, LIEF::Object> cls(m, "DataCodeEntry");
|
||||
@@ -84,3 +88,6 @@ void init_MachO_DataCodeEntry_class(py::module& m) {
|
||||
.value(PY_ENUM(DataCodeEntry::TYPES::ABS_JUMP_TABLE_32));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user