Skip to content

Commit e509a10

Browse files
author
gerrymanoim
authored
ENH: Inline nullptr instead of using end_method_list (#189)
1 parent a3f6e0d commit e509a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/libpy/automodule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
return nullptr; \
5555
} \
5656
static std::vector<PyMethodDef> ms methods; \
57-
ms.emplace_back(py::end_method_list); \
57+
ms.emplace_back(PyMethodDef({nullptr})); \
5858
static PyModuleDef _libpy_module{ \
5959
PyModuleDef_HEAD_INIT, \
6060
_libpy_MODULE_PATH(parent, name), \

0 commit comments

Comments
 (0)