File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,18 @@ PyAPI_FUNC(PyObject *) _PyObject_FastCallDict(
141
141
"tuple" and keyword arguments "dict". "dict" may also be NULL */
142
142
PyAPI_FUNC (PyObject * ) PyVectorcall_Call (PyObject * callable , PyObject * tuple , PyObject * dict );
143
143
144
- #define _PyObject_FastCall (func , args , nargs ) \
145
- _PyObject_Vectorcall((func), (args), (nargs), NULL)
144
+ /* Same as _PyObject_Vectorcall except without keyword arguments */
145
+ static inline PyObject *
146
+ _PyObject_FastCall (PyObject * func , PyObject * const * args , Py_ssize_t nargs )
147
+ {
148
+ return _PyObject_Vectorcall (func , args , (size_t )nargs , NULL );
149
+ }
146
150
147
- #define _PyObject_CallNoArg (func ) \
148
- _PyObject_Vectorcall((func), NULL, 0, NULL)
151
+ /* Call a callable without any arguments */
152
+ static inline PyObject *
153
+ _PyObject_CallNoArg (PyObject * func ) {
154
+ return _PyObject_Vectorcall (func , NULL , 0 , NULL );
155
+ }
149
156
150
157
PyAPI_FUNC (PyObject * ) _PyObject_Call_Prepend (
151
158
PyObject * callable ,
You can’t perform that action at this time.
0 commit comments