Skip to content

Commit 40105f0

Browse files
committed
Rename module to mod
1 parent 4f49c83 commit 40105f0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/boost/python/module_init.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ BOOST_PYTHON_DECL PyObject* init_module(char const* name, void(*)());
125125

126126
# if defined(HAS_CXX11) && (PY_VERSION_HEX >= 0x030D0000)
127127
# define _BOOST_PYTHON_MODULE_MULTI_PHASE_INIT(name, ...) \
128-
int BOOST_PP_CAT(exec_module_,name)(PyObject* module) \
128+
int BOOST_PP_CAT(exec_module_,name)(PyObject* mod) \
129129
{ \
130130
return boost::python::detail::exec_module( \
131-
module, BOOST_PP_CAT(init_module_, name) ); \
131+
mod, BOOST_PP_CAT(init_module_, name) ); \
132132
} \
133133
extern "C" BOOST_SYMBOL_EXPORT PyObject* BOOST_PP_CAT(PyInit_, name)() \
134134
{ \
@@ -162,10 +162,10 @@ BOOST_PYTHON_DECL PyObject* init_module(char const* name, void(*)());
162162
void BOOST_PP_CAT(init_module_, name)()
163163
# else // ! HAS_CXX11 && Python 3.13+
164164
# define _BOOST_PYTHON_MODULE_MULTI_PHASE_INIT(name) \
165-
int BOOST_PP_CAT(exec_module_,name)(PyObject* module) \
165+
int BOOST_PP_CAT(exec_module_,name)(PyObject* mod) \
166166
{ \
167167
return boost::python::detail::exec_module( \
168-
module, BOOST_PP_CAT(init_module_, name) ); \
168+
mod, BOOST_PP_CAT(init_module_, name) ); \
169169
} \
170170
extern "C" BOOST_SYMBOL_EXPORT PyObject* BOOST_PP_CAT(PyInit_, name)() \
171171
{ \

src/module.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ BOOST_PYTHON_DECL PyObject* init_module(PyModuleDef& moduledef,
5454

5555
# if PY_VERSION_HEX >= 0x03050000
5656

57-
BOOST_PYTHON_DECL int exec_module(PyObject* module, void(*init_function)())
57+
BOOST_PYTHON_DECL int exec_module(PyObject* mod, void(*init_function)())
5858
{
5959
PyObject* retval = init_module_in_scope(
60-
module,
60+
mod,
6161
init_function);
6262
return retval ? 0 : -1;
6363
}

0 commit comments

Comments
 (0)