Skip to content

Commit

Permalink
allow computed gotos with tail calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Fidget-Spinner committed Jan 12, 2025
1 parent b1ae570 commit 7a95b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
_Py_EnsureTstateNotNULL(tstate);
CALL_STAT_INC(pyeval_calls);

#if USE_COMPUTED_GOTOS
#if USE_COMPUTED_GOTOS && !defined(Py_TAIL_CALL_INTERP)
/* Import the static jump table */
#include "opcode_targets.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion Python/ceval_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#define OR_DTRACE_LINE
#endif

#if defined(HAVE_COMPUTED_GOTOS) && !defined(Py_TAIL_CALL_INTERP)
#ifdef HAVE_COMPUTED_GOTO
#ifndef USE_COMPUTED_GOTOS
#define USE_COMPUTED_GOTOS 1
#endif
Expand Down

0 comments on commit 7a95b7e

Please sign in to comment.