summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mruby/irep.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h
index 0d8a05dbe..534590849 100644
--- a/include/mruby/irep.h
+++ b/include/mruby/irep.h
@@ -12,10 +12,10 @@ extern "C" {
#endif
typedef struct mrb_irep {
- int idx;
-
- int nlocals;
- int nregs;
+ int idx:16;
+ int nlocals:16;
+ int nregs:16;
+ int flags:8;
mrb_code *iseq;
mrb_value *pool;
@@ -28,6 +28,8 @@ typedef struct mrb_irep {
int ilen, plen, slen;
} mrb_irep;
+#define MRB_ISEQ_NO_FREE 1
+
void mrb_add_irep(mrb_state *mrb, int n);
#if defined(__cplusplus)