crash.software
Projects
Pull Requests
Issues
Builds
LIEF
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
LIEF
Commits
082fc725
🤬
Sign In
Init from a dedicated function
Romain Thomas
committed
3 months ago
082fc725
1 parent
b0f421bd
Total 1 files
■ ■ ■ ■
■ ■
api/python/src/pyLIEF.cpp
skipped 137 lines
138
138
m.def("to_json", &LIEF::to_json);
139
139
}
140
140
141
-
142
-
}
143
-
144
-
NB_MODULE(_lief, m) {
141
+
void init(nb::module_& m) {
145
142
lief_mod = &m;
146
143
m.attr("__version__") = nb::str(LIEF_VERSION);
147
144
m.attr("__tag__") = nb::str(LIEF_TAG);
skipped 39 lines
187
184
#if defined(LIEF_ART_SUPPORT)
188
185
LIEF::ART::py::init(m);
189
186
#endif
187
+
}
188
+
}
189
+
190
+
NB_MODULE(_lief, m) {
191
+
LIEF::py::init(m);
190
192
}
191
193
All occurrences
Please wait...
Page is in error, reload to recover