mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Enhance LIEF 'modules' separation
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "LIEF/config.h"
|
||||
#include "pyLIEF.hpp"
|
||||
#include "pyIterators.hpp"
|
||||
|
||||
@@ -27,7 +28,7 @@ void init_LIEF_iterators(py::module& m) {
|
||||
|
||||
// ELF
|
||||
// ===
|
||||
#if defined(LIEF_ELF_MODULE)
|
||||
#if defined(LIEF_ELF_SUPPORT)
|
||||
init_ref_iterator<LIEF::ELF::it_sections>(m);
|
||||
init_ref_iterator<LIEF::ELF::it_segments>(m);
|
||||
init_ref_iterator<LIEF::ELF::it_dynamic_entries>(m);
|
||||
@@ -45,7 +46,7 @@ void init_LIEF_iterators(py::module& m) {
|
||||
|
||||
// PE
|
||||
// ==
|
||||
#if defined(LIEF_PE_MODULE)
|
||||
#if defined(LIEF_PE_SUPPORT)
|
||||
init_ref_iterator<LIEF::PE::it_sections>(m);
|
||||
init_ref_iterator<LIEF::PE::it_data_directories>(m);
|
||||
init_ref_iterator<LIEF::PE::it_relocations>(m);
|
||||
@@ -62,7 +63,7 @@ void init_LIEF_iterators(py::module& m) {
|
||||
|
||||
// MachO
|
||||
// =====
|
||||
#if defined(LIEF_MACHO_MODULE)
|
||||
#if defined(LIEF_MACHO_SUPPORT)
|
||||
init_ref_iterator<LIEF::MachO::it_binaries>(m);
|
||||
init_ref_iterator<LIEF::MachO::it_relocations>(m);
|
||||
init_ref_iterator<LIEF::MachO::it_commands>(m);
|
||||
|
||||
Reference in New Issue
Block a user