diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2024-09-09 18:21:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 18:21:51 +0100 |
commit | 1a9d8917a38e3eb190506025b9444730ed821449 (patch) | |
tree | 169b669c8337c31e2d7dcea785a441af0baa089b /Include/internal/pycore_instruction_sequence.h | |
parent | 65fcaa38ada727b504ec60ae283caf8e3ebbb845 (diff) | |
download | cpython-1a9d8917a38e3eb190506025b9444730ed821449.tar.gz cpython-1a9d8917a38e3eb190506025b9444730ed821449.zip |
gh-121404: split compile.c into compile.c and codegen.c (#123651)
Diffstat (limited to 'Include/internal/pycore_instruction_sequence.h')
-rw-r--r-- | Include/internal/pycore_instruction_sequence.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/internal/pycore_instruction_sequence.h b/Include/internal/pycore_instruction_sequence.h index d6a79616db7..099f2fd1240 100644 --- a/Include/internal/pycore_instruction_sequence.h +++ b/Include/internal/pycore_instruction_sequence.h @@ -51,6 +51,11 @@ typedef struct { int id; } _PyJumpTargetLabel; +#define NO_LABEL ((const _PyJumpTargetLabel){-1}) + +#define SAME_JUMP_TARGET_LABEL(L1, L2) ((L1).id == (L2).id) +#define IS_JUMP_TARGET_LABEL(L) (!SAME_JUMP_TARGET_LABEL((L), (NO_LABEL))) + PyAPI_FUNC(PyObject*)_PyInstructionSequence_New(void); int _PyInstructionSequence_UseLabel(_PyInstructionSequence *seq, int lbl); |