mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Inline PyObject_CallObject (Marc-Andre Lemburg).
This commit is contained in:
parent
b2afc811c2
commit
d7ed683a7e
2 changed files with 9 additions and 1 deletions
|
@ -2254,6 +2254,9 @@ Py_FlushLine()
|
|||
/* External interface to call any callable object.
|
||||
The arg must be a tuple or NULL. */
|
||||
|
||||
#undef PyEval_CallObject
|
||||
/* for backward compatibility: export this interface */
|
||||
|
||||
PyObject *
|
||||
PyEval_CallObject(func, arg)
|
||||
PyObject *func;
|
||||
|
@ -2261,6 +2264,8 @@ PyEval_CallObject(func, arg)
|
|||
{
|
||||
return PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL);
|
||||
}
|
||||
#define PyEval_CallObject(func,arg) \
|
||||
PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)
|
||||
|
||||
PyObject *
|
||||
PyEval_CallObjectWithKeywords(func, arg, kw)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue