aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.h
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/iseq.h b/iseq.h
index 5487d86f7b..be7d8efd9d 100644
--- a/iseq.h
+++ b/iseq.h
@@ -68,6 +68,18 @@ struct iseq_catch_table_entry {
unsigned long sp;
};
+PACKED_STRUCT_UNALIGNED(struct iseq_catch_table {
+ int size;
+ struct iseq_catch_table_entry entries[1]; /* flexible array */
+});
+
+static inline int
+iseq_catch_table_bytes(int n)
+{
+ return sizeof(struct iseq_catch_table) +
+ (n - 1) * sizeof(struct iseq_catch_table_entry);
+}
+
#define INITIAL_ISEQ_COMPILE_DATA_STORAGE_BUFF_SIZE (512)
struct iseq_compile_data_storage {