mirror of
https://github.com/python/cpython.git
synced 2025-08-26 19:55:24 +00:00
gh-111354: define names for RESUME oparg values (#111365)
This commit is contained in:
parent
309efb39dc
commit
a0c414c35d
7 changed files with 16 additions and 8 deletions
|
@ -58,6 +58,12 @@ extern "C" {
|
|||
#define MAKE_FUNCTION_ANNOTATIONS 0x04
|
||||
#define MAKE_FUNCTION_CLOSURE 0x08
|
||||
|
||||
/* Values used in the oparg for RESUME */
|
||||
#define RESUME_AT_FUNC_START 0
|
||||
#define RESUME_AFTER_YIELD 1
|
||||
#define RESUME_AFTER_YIELD_FROM 2
|
||||
#define RESUME_AFTER_AWAIT 3
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue