diff options
author | Ken Jin <kenjin@python.org> | 2025-02-18 23:48:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-18 15:48:49 +0000 |
commit | 46ac85e4d9fcffe1a8f921989414a89648b5501a (patch) | |
tree | 93db42fea4eae69337ab731d02d1fb49e21373e9 /Python | |
parent | dab456dcefd886bde44eb204dc6f1b2f14de0e9d (diff) | |
download | cpython-46ac85e4d9fcffe1a8f921989414a89648b5501a.tar.gz cpython-46ac85e4d9fcffe1a8f921989414a89648b5501a.zip |
gh-129989: Change Py_TAIL_CALL_INTERP ifndef to ! (#130269)
Change Py_TAIL_CALL_INTERP ifndef to !
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bytecodes.c | 2 | ||||
-rw-r--r-- | Python/ceval.c | 2 | ||||
-rw-r--r-- | Python/generated_cases.c.h | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 3f8f711c559..1c5fdf847b6 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -1358,7 +1358,7 @@ dummy_func( tier1 inst(CLEANUP_THROW, (sub_iter, last_sent_val, exc_value_st -- none, value)) { PyObject *exc_value = PyStackRef_AsPyObjectBorrow(exc_value_st); - #ifndef Py_TAIL_CALL_INTERP + #if !Py_TAIL_CALL_INTERP assert(throwflag); #endif assert(exc_value && PyExceptionInstance_Check(exc_value)); diff --git a/Python/ceval.c b/Python/ceval.c index 28b26ffb5de..cf9a8713ed9 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -798,7 +798,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int #ifdef Py_STATS int lastopcode = 0; #endif -#ifndef Py_TAIL_CALL_INTERP +#if !Py_TAIL_CALL_INTERP uint8_t opcode; /* Current opcode */ int oparg; /* Current opcode argument, if any */ assert(tstate->current_frame == NULL || tstate->current_frame->stackpointer != NULL); diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index e7f8fdce41b..01fa857b96a 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -8,7 +8,7 @@ #endif #define TIER_ONE 1 -#ifndef Py_TAIL_CALL_INTERP +#if !Py_TAIL_CALL_INTERP #if !USE_COMPUTED_GOTOS dispatch_opcode: switch (opcode) @@ -4409,7 +4409,7 @@ last_sent_val = stack_pointer[-2]; sub_iter = stack_pointer[-3]; PyObject *exc_value = PyStackRef_AsPyObjectBorrow(exc_value_st); - #ifndef Py_TAIL_CALL_INTERP + #if !Py_TAIL_CALL_INTERP assert(throwflag); #endif assert(exc_value && PyExceptionInstance_Check(exc_value)); @@ -11929,7 +11929,7 @@ } /* END INSTRUCTIONS */ -#ifndef Py_TAIL_CALL_INTERP +#if !Py_TAIL_CALL_INTERP #if USE_COMPUTED_GOTOS _unknown_opcode: #else |