diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-10-26 15:30:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 15:30:18 (GMT) |
commit | a0c414c35d0dc0d44a885fda448652e23de2482c (patch) | |
tree | 014f5cb67924fcc0ac17d97aeb879dc05a6ccac0 /Include | |
parent | 309efb39dc005a834bb67e9a6f27b6689f00ec9d (diff) | |
download | cpython-a0c414c35d0dc0d44a885fda448652e23de2482c.zip cpython-a0c414c35d0dc0d44a885fda448652e23de2482c.tar.gz cpython-a0c414c35d0dc0d44a885fda448652e23de2482c.tar.bz2 |
gh-111354: define names for RESUME oparg values (#111365)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_opcode_utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/internal/pycore_opcode_utils.h b/Include/internal/pycore_opcode_utils.h index c4acb00..a673336 100644 --- a/Include/internal/pycore_opcode_utils.h +++ b/Include/internal/pycore_opcode_utils.h @@ -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 } |