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,9 @@
|
||||
|
||||
#include "pyMachO.hpp"
|
||||
|
||||
namespace LIEF {
|
||||
namespace MachO {
|
||||
|
||||
template<class T>
|
||||
using getter_t = T (ThreadCommand::*)(void) const;
|
||||
|
||||
@@ -30,7 +33,9 @@ template<class T>
|
||||
using setter_t = void (ThreadCommand::*)(T);
|
||||
|
||||
|
||||
void init_MachO_ThreadCommand_class(py::module& m) {
|
||||
|
||||
template<>
|
||||
void create<ThreadCommand>(py::module& m) {
|
||||
|
||||
py::class_<ThreadCommand, LoadCommand>(m, "ThreadCommand")
|
||||
|
||||
@@ -76,3 +81,6 @@ void init_MachO_ThreadCommand_class(py::module& m) {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user