Use PYBIND11_MODULE instead of PYBIND11_PLUGIN

The latter is deprecated.
This commit is contained in:
Oliver Hamlet
2019-06-16 13:29:31 +01:00
parent c19a9be579
commit 915c002ca6
+2 -4
View File
@@ -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();
}