diff options
| author | dearblue <[email protected]> | 2021-01-10 10:20:01 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2021-01-10 13:23:28 +0900 |
| commit | 58e94427377952b0953bcdf2d544c62b0fefd4a6 (patch) | |
| tree | ca0092df0d3e983166b0753a463663b583a6d414 /include/mruby.h | |
| parent | b210cfa34ea9e0d288d35b3c9b78c98d33f25dae (diff) | |
| download | mruby-58e94427377952b0953bcdf2d544c62b0fefd4a6.tar.gz mruby-58e94427377952b0953bcdf2d544c62b0fefd4a6.zip | |
Unified `target_class` and `env` of `mrb_callinfo`
If there is `env`, `env->c` means `target_class`.
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mruby.h b/include/mruby.h index 79eb5e26f..9f6dde746 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -152,12 +152,14 @@ typedef struct { mrb_sym mid; const struct RProc *proc; mrb_value *stackent; - struct REnv *env; const mrb_code *pc; /* return address */ const mrb_code *err; /* error position */ int16_t argc; int16_t acc; - struct RClass *target_class; + union { + struct REnv *env; + struct RClass *target_class; + } u; } mrb_callinfo; enum mrb_fiber_state { |
