From a41ed975e863ae0ca435783596f14f8492d62f8d Mon Sep 17 00:00:00 2001 From: adphrost <104581013+adphrost@users.noreply.github.com> Date: Thu, 15 Sep 2022 08:42:37 -0700 Subject: GH-91049: Introduce set vectorcall field API for PyFunctionObject (GH-92257) Co-authored-by: Andrew Frost Co-authored-by: Itamar Ostricher --- Include/cpython/funcobject.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Include/cpython') diff --git a/Include/cpython/funcobject.h b/Include/cpython/funcobject.h index 05f76656c4..dd8f20b2c2 100644 --- a/Include/cpython/funcobject.h +++ b/Include/cpython/funcobject.h @@ -48,7 +48,8 @@ typedef struct { * defaults * kwdefaults (only if the object changes, not the contents of the dict) * code - * annotations */ + * annotations + * vectorcall function pointer */ uint32_t func_version; /* Invariant: @@ -69,6 +70,7 @@ PyAPI_FUNC(PyObject *) PyFunction_GetGlobals(PyObject *); PyAPI_FUNC(PyObject *) PyFunction_GetModule(PyObject *); PyAPI_FUNC(PyObject *) PyFunction_GetDefaults(PyObject *); PyAPI_FUNC(int) PyFunction_SetDefaults(PyObject *, PyObject *); +PyAPI_FUNC(void) PyFunction_SetVectorcall(PyFunctionObject *, vectorcallfunc); PyAPI_FUNC(PyObject *) PyFunction_GetKwDefaults(PyObject *); PyAPI_FUNC(int) PyFunction_SetKwDefaults(PyObject *, PyObject *); PyAPI_FUNC(PyObject *) PyFunction_GetClosure(PyObject *); -- cgit v1.2.1