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 /mrbgems/mruby-class-ext/src | |
| 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 'mrbgems/mruby-class-ext/src')
| -rw-r--r-- | mrbgems/mruby-class-ext/src/class.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mrbgems/mruby-class-ext/src/class.c b/mrbgems/mruby-class-ext/src/class.c index b7b5e18f8..39c16fc48 100644 --- a/mrbgems/mruby-class-ext/src/class.c +++ b/mrbgems/mruby-class-ext/src/class.c @@ -1,6 +1,7 @@ #include "mruby.h" #include "mruby/class.h" #include "mruby/string.h" +#include "mruby/proc.h" static mrb_value mrb_mod_name(mrb_state *mrb, mrb_value self) @@ -51,7 +52,7 @@ mrb_mod_module_exec(mrb_state *mrb, mrb_value self) if (mrb->c->ci->acc < 0) { return mrb_yield_with_class(mrb, blk, argc, argv, self, c); } - mrb->c->ci->target_class = c; + mrb_vm_ci_target_class_set(mrb->c->ci, c); return mrb_yield_cont(mrb, blk, self, argc, argv); } |
