diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-15 02:45:52 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-15 02:45:52 +0900 |
| commit | 71354b91cb48ff3a5c1e3c09492d18a3c30efcb9 (patch) | |
| tree | b5d7040f11c3703d51c8dee1d6e2a0f57a9e4046 /include | |
| parent | 16b34d187ae668eaf203efaeccc1d7c5a05142f5 (diff) | |
| download | mruby-71354b91cb48ff3a5c1e3c09492d18a3c30efcb9.tar.gz mruby-71354b91cb48ff3a5c1e3c09492d18a3c30efcb9.zip | |
enum mrb_vtype varies on compile time configuration, namely MRB_NAN_BOXING
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/irep.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h index 8bcf7ce82..241e52a1b 100644 --- a/include/mruby/irep.h +++ b/include/mruby/irep.h @@ -11,6 +11,12 @@ extern "C" { #endif +enum irep_pool_type { + IREP_TT_STRING, + IREP_TT_FIXNUM, + IREP_TT_FLOAT, +}; + /* Program data array struct */ typedef struct mrb_irep { uint16_t nlocals; /* Number of local variables */ @@ -27,7 +33,7 @@ typedef struct mrb_irep { } *s; mrb_int i; } value; - enum mrb_vtype type; + enum irep_pool_type type; } *pool; mrb_sym *syms; struct mrb_irep **reps; |
