File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -427,9 +427,16 @@ do { \
427427/* How much scratch space to give stackref to PyObject* conversion. */
428428#define MAX_STACKREF_SCRATCH 10
429429
430+ #if Py_TAIL_CALL_INTERP
431+ #define STACKREFS_TO_PYOBJECTS (ARGS , ARG_COUNT , NAME ) \
432+ /* +1 because vectorcall might use -1 to write self */ \
433+ PyObject *NAME##_temp[MAX_STACKREF_SCRATCH+1]; \
434+ PyObject **NAME = _PyObjectArray_FromStackRefArray(ARGS, ARG_COUNT, NAME##_temp + 1);
435+ #else
430436#define STACKREFS_TO_PYOBJECTS (ARGS , ARG_COUNT , NAME ) \
431437 PyObject **NAME##_temp = (PyObject **)&STACKREF_SCRATCH; \
432438 PyObject **NAME = _PyObjectArray_FromStackRefArray(ARGS, ARG_COUNT, NAME##_temp + 1);
439+ #endif
433440
434441#define STACKREFS_TO_PYOBJECTS_CLEANUP (NAME ) \
435442 /* +1 because we +1 previously */ \
You can’t perform that action at this time.
0 commit comments