summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-08-08 12:12:05 (GMT)
committerGitHub <noreply@github.com>2022-08-08 12:12:05 (GMT)
commit656dad702d3b25bf678ee9bd7109d98876946258 (patch)
treed532248aca4a64f0ad9fb431f34398c1afc05ff5 /Objects
parentcc9160a29bc3356ced92348bcd8e6668c67167c9 (diff)
downloadcpython-656dad702d3b25bf678ee9bd7109d98876946258.zip
cpython-656dad702d3b25bf678ee9bd7109d98876946258.tar.gz
cpython-656dad702d3b25bf678ee9bd7109d98876946258.tar.bz2
gh-93274: Expose receiving vectorcall in the Limited API (GH-95717)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/call.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Objects/call.c b/Objects/call.c
index ed168c9..c2509db 100644
--- a/Objects/call.c
+++ b/Objects/call.c
@@ -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);
+}