gh-111354: define names for RESUME oparg values (#111365)

This commit is contained in:
Irit Katriel
2023-10-26 16:30:18 +01:00
committed by GitHub
parent 309efb39dc
commit a0c414c35d
7 changed files with 16 additions and 8 deletions

View File

@@ -643,7 +643,7 @@ static const _Py_CODEUNIT _Py_INTERPRETER_TRAMPOLINE_INSTRUCTIONS[] = {
{ .op.code = INTERPRETER_EXIT, .op.arg = 0 }, /* reached on return */
{ .op.code = NOP, .op.arg = 0 },
{ .op.code = INTERPRETER_EXIT, .op.arg = 0 }, /* reached on yield */
{ .op.code = RESUME, .op.arg = 0 }
{ .op.code = RESUME, .op.arg = RESUME_AT_FUNC_START }
};
extern const struct _PyCode_DEF(8) _Py_InitCleanup;