gh-93274: Expose receiving vectorcall in the Limited API (GH-95717)

This commit is contained in:
Petr Viktorin 2022-08-08 14:12:05 +02:00 committed by GitHub
parent cc9160a29b
commit 656dad702d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 152 additions and 13 deletions

View file

@ -1047,3 +1047,11 @@ _PyStack_UnpackDict_Free(PyObject *const *stack, Py_ssize_t nargs,
PyMem_Free((PyObject **)stack - 1);
Py_DECREF(kwnames);
}
// Export for the stable ABI
#undef PyVectorcall_NARGS
Py_ssize_t
PyVectorcall_NARGS(size_t n)
{
return _PyVectorcall_NARGS(n);
}