summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 62850f28ce..da20e18acc 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -598,6 +598,16 @@ typedef struct {
} rb_binding_t;
/* used by compile time and send insn */
+
+enum vm_check_match_type {
+ VM_CHECKMATCH_TYPE_WHEN = 1,
+ VM_CHECKMATCH_TYPE_CASE = 2,
+ VM_CHECKMATCH_TYPE_RESCUE = 3
+};
+
+#define VM_CHECKMATCH_TYPE_MASK 0x03
+#define VM_CHECKMATCH_ARRAY 0x04
+
#define VM_CALL_ARGS_SPLAT_BIT (0x01 << 1)
#define VM_CALL_ARGS_BLOCKARG_BIT (0x01 << 2)
#define VM_CALL_FCALL_BIT (0x01 << 3)