mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
This commit cleans and modernizes the code base of LIEF.
Among the changes: - It removes the ``and, or, not`` keywords - It updates the Documentation - It moves the internal structures in the ``details::`` namespace
This commit is contained in:
@@ -42,7 +42,10 @@ template<>
|
||||
void create<DataCodeEntry>(py::module& m) {
|
||||
|
||||
|
||||
py::class_<DataCodeEntry, LIEF::Object> cls(m, "DataCodeEntry");
|
||||
py::class_<DataCodeEntry, LIEF::Object> cls(m, "DataCodeEntry",
|
||||
R"delim(
|
||||
Interface over an entry in the :class:`~lief.MachO.DataInCode` command
|
||||
)delim");
|
||||
|
||||
cls
|
||||
.def_property("offset",
|
||||
@@ -58,7 +61,7 @@ void create<DataCodeEntry>(py::module& m) {
|
||||
.def_property("type",
|
||||
static_cast<getter_t<DataCodeEntry::TYPES>>(&DataCodeEntry::type),
|
||||
static_cast<setter_t<DataCodeEntry::TYPES>>(&DataCodeEntry::type),
|
||||
"Type of the entry (" RST_CLASS_REF(lief.MachO.DataCodeEntry.TYPES) "")
|
||||
"Type of the data (" RST_CLASS_REF(lief.MachO.DataCodeEntry.TYPES) "")
|
||||
|
||||
|
||||
.def("__eq__", &DataCodeEntry::operator==)
|
||||
|
||||
Reference in New Issue
Block a user