Skip to content

Commit ca063f8

Browse files
Change Py_TAIL_CALL_INTERP ifndef to !
1 parent 01ba7df commit ca063f8

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Python/bytecodes.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ dummy_func(
13581358

13591359
tier1 inst(CLEANUP_THROW, (sub_iter, last_sent_val, exc_value_st -- none, value)) {
13601360
PyObject *exc_value = PyStackRef_AsPyObjectBorrow(exc_value_st);
1361-
#ifndef Py_TAIL_CALL_INTERP
1361+
#if !Py_TAIL_CALL_INTERP
13621362
assert(throwflag);
13631363
#endif
13641364
assert(exc_value && PyExceptionInstance_Check(exc_value));

Python/ceval.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
798798
#ifdef Py_STATS
799799
int lastopcode = 0;
800800
#endif
801-
#ifndef Py_TAIL_CALL_INTERP
801+
#if !Py_TAIL_CALL_INTERP
802802
uint8_t opcode; /* Current opcode */
803803
int oparg; /* Current opcode argument, if any */
804804
assert(tstate->current_frame == NULL || tstate->current_frame->stackpointer != NULL);

Python/generated_cases.c.h

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/tier1_generator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def generate_tier1(
160160
#define TIER_ONE 1
161161
""")
162162
outfile.write(f"""
163-
#ifndef Py_TAIL_CALL_INTERP
163+
#if !Py_TAIL_CALL_INTERP
164164
#if !USE_COMPUTED_GOTOS
165165
dispatch_opcode:
166166
switch (opcode)
@@ -173,7 +173,7 @@ def generate_tier1(
173173
generate_tier1_cases(analysis, outfile, lines)
174174
outfile.write(f"""
175175
{INSTRUCTION_END_MARKER}
176-
#ifndef Py_TAIL_CALL_INTERP
176+
#if !Py_TAIL_CALL_INTERP
177177
#if USE_COMPUTED_GOTOS
178178
_unknown_opcode:
179179
#else

0 commit comments

Comments
 (0)