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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 8 deletions

View file

@ -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
}