aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 0a4bcba5fa..af1d267b84 100644
--- a/internal.h
+++ b/internal.h
@@ -533,6 +533,7 @@ enum imemo_type {
imemo_none,
imemo_cref,
imemo_svar,
+ imemo_throw_data,
imemo_mask = 0x07
};
@@ -645,6 +646,18 @@ struct vm_svar {
const VALUE others;
};
+/* THROW_DATA */
+
+struct vm_throw_data {
+ VALUE flags;
+ VALUE reserved;
+ const VALUE throw_obj;
+ const struct rb_control_frame_struct *catch_frame;
+ VALUE throw_state;
+};
+
+#define THROW_DATA_P(err) RB_TYPE_P((err), T_IMEMO)
+
/* MEMO */
struct MEMO {