aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include/internal/pycore_opcode_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/internal/pycore_opcode_utils.h')
-rw-r--r--Include/internal/pycore_opcode_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_opcode_utils.h b/Include/internal/pycore_opcode_utils.h
index 62af06dc01c..79a1a242556 100644
--- a/Include/internal/pycore_opcode_utils.h
+++ b/Include/internal/pycore_opcode_utils.h
@@ -56,6 +56,8 @@ extern "C" {
#define IS_RETURN_OPCODE(opcode) \
(opcode == RETURN_VALUE)
+#define IS_RAISE_OPCODE(opcode) \
+ (opcode == RAISE_VARARGS || opcode == RERAISE)
/* Flags used in the oparg for MAKE_FUNCTION */