pybind11/include/pybind11
Ralf W. Grosse-Kunstleve d159a56338
static allocation for PyModuleDef, to avoid leak check errors. (#2413)
* Initializing PyModuleDef object with PyModuleDef_HEAD_INIT.

Python 3.8 documentation: m_base - Always initialize this member to PyModuleDef_HEAD_INIT.

Long-standing (since first github commit in 2015), inconsequential bug.

Also removing inconsequential Py_INCREF(def): PyModule_Create() resets the reference count to 1.

* git rebase master

* moving static PyModuleDef declaration to global scope, as requested by @wjakob

* renaming the two new macros, to start with PYBIND11_DETAIL_MODULE
2020-09-26 22:55:11 -07:00
..
detail static allocation for PyModuleDef, to avoid leak check errors. (#2413) 2020-09-26 22:55:11 -07:00
attr.h style: clang-tidy: modernize-use-equals-default 2020-09-15 09:56:59 -04:00
buffer_info.h style: clang-tidy: modernize-use-equals-default 2020-09-15 09:56:59 -04:00
cast.h fix: AppleClang 12 warnings (#2510) 2020-09-19 20:23:47 +02:00
chrono.h style: clang-tidy: modernize-use-using 2020-09-15 09:56:59 -04:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
eigen.h refactor: replace .get_type with type::handle_of (#2492) 2020-09-16 11:32:17 -04:00
embed.h Rename embedded_module object's name (#2282) 2020-07-10 16:31:03 +02:00
eval.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
functional.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
iostream.h style: clang-tidy: default checks and fix bug in iostream deconstruction 2020-09-15 09:56:59 -04:00
numpy.h fix: rename pybind11::module to pybind11::module_ (#2489) 2020-09-16 17:15:42 -04:00
operators.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
options.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
pybind11.h static allocation for PyModuleDef, to avoid leak check errors. (#2413) 2020-09-26 22:55:11 -07:00
pytypes.h fix: type bug intruduced in #2492 2020-09-16 23:21:47 -04:00
stl_bind.h style: clang-tidy: modernize-use-auto 2020-09-15 09:56:59 -04:00
stl.h Use defined for some preprocessor variables that might be undefined (#2476) 2020-09-10 13:58:26 -04:00