Skip to content

Commit 71eba58

Browse files
cleanup
1 parent 5615d6f commit 71eba58

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Include/Python.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// Since this is a "meta-include" file, "#ifdef __cplusplus / extern "C" {"
99
// is not needed.
1010

11+
1112
// Include Python header files
1213
#include "patchlevel.h"
1314
#include "pyconfig.h"

Python/bytecodes.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,9 @@ dummy_func(
13041304

13051305
tier1 inst(CLEANUP_THROW, (sub_iter_st, last_sent_val_st, exc_value_st -- none, value)) {
13061306
PyObject *exc_value = PyStackRef_AsPyObjectBorrow(exc_value_st);
1307-
// assert(throwflag);
1307+
#ifndef Py_TAIL_CALL_INTERP
1308+
assert(throwflag);
1309+
#endif
13081310
assert(exc_value && PyExceptionInstance_Check(exc_value));
13091311

13101312
int matches = PyErr_GivenExceptionMatches(exc_value, PyExc_StopIteration);

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ TAIL_CALL_TARGET(resume_with_error):
11951195

11961196
#endif // _Py_TIER2
11971197

1198-
} /* _PyEval_EvalFrameDefault */
1198+
}
11991199

12001200
#ifdef DO_NOT_OPTIMIZE_INTERP_LOOP
12011201
# pragma optimize("", on)

0 commit comments

Comments
 (0)