Skip to content

Commit 7a95b7e

Browse files
allow computed gotos with tail calls
1 parent b1ae570 commit 7a95b7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
797797
_Py_EnsureTstateNotNULL(tstate);
798798
CALL_STAT_INC(pyeval_calls);
799799

800-
#if USE_COMPUTED_GOTOS
800+
#if USE_COMPUTED_GOTOS && !defined(Py_TAIL_CALL_INTERP)
801801
/* Import the static jump table */
802802
#include "opcode_targets.h"
803803
#endif

Python/ceval_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#define OR_DTRACE_LINE
4848
#endif
4949

50-
#if defined(HAVE_COMPUTED_GOTOS) && !defined(Py_TAIL_CALL_INTERP)
50+
#ifdef HAVE_COMPUTED_GOTO
5151
#ifndef USE_COMPUTED_GOTOS
5252
#define USE_COMPUTED_GOTOS 1
5353
#endif

0 commit comments

Comments
 (0)