Skip to content

Commit e881dd1

Browse files
committed
Support tail-calling
1 parent 492df4e commit e881dd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/ceval_macros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
#define INSTRUCTION_STATS(op) ((void)0)
7171
#endif
7272

73-
#define TAIL_CALL_PARAMS _PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate, _Py_CODEUNIT *next_instr, int oparg
74-
#define TAIL_CALL_ARGS frame, stack_pointer, tstate, next_instr, oparg
73+
#define TAIL_CALL_PARAMS _PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate, _Py_CODEUNIT *next_instr, int oparg, _PyStackRef _tos
74+
#define TAIL_CALL_ARGS frame, stack_pointer, tstate, next_instr, oparg, _tos
7575

7676
#if Py_TAIL_CALL_INTERP
7777
// Note: [[clang::musttail]] works for GCC 15, but not __attribute__((musttail)) at the moment.

0 commit comments

Comments
 (0)