mirror of
https://github.com/loot/libloot-python.git
synced 2026-07-27 14:14:13 -07:00
Use PYBIND11_MODULE instead of PYBIND11_PLUGIN
The latter is deprecated.
This commit is contained in:
+2
-4
@@ -170,12 +170,10 @@ void bindFunctions(pybind11::module& module) {
|
||||
}
|
||||
}
|
||||
|
||||
PYBIND11_PLUGIN(loot_api) {
|
||||
pybind11::module module("loot_api", "A Python module that wraps the LOOT API, generated by pybind11.");
|
||||
PYBIND11_MODULE(loot_api, module) {
|
||||
module.doc() = "A Python module that wraps the LOOT API, generated by pybind11.";
|
||||
|
||||
loot::bindEnums(module);
|
||||
loot::bindClasses(module);
|
||||
loot::bindFunctions(module);
|
||||
|
||||
return module.ptr();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user