diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-10 12:39:51 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-10 12:39:51 +0900 |
| commit | 7df31d945181d86ac9d97ed5db4a14833ee93495 (patch) | |
| tree | bbd08e32fb39fbad628b377c417cfda5fbfd2e79 /mrbgems/mruby-class-ext | |
| parent | 3050630b69f7ec8aeaa5a1918275fa56e15b80f7 (diff) | |
| download | mruby-7df31d945181d86ac9d97ed5db4a14833ee93495.tar.gz mruby-7df31d945181d86ac9d97ed5db4a14833ee93495.zip | |
mruby.h: remove `acc` from `callinfo`; add `cci` instead.
`acc` was used as an index of the receiver (if positive), or a flag for
methods implemented in C. We replace `regs[ci->acc]` by `ci[1].stack[0]`.
And renamed `acc` (originally meant accumulator position) to `cci`
(means callinfo for C implemented method).
Diffstat (limited to 'mrbgems/mruby-class-ext')
| -rw-r--r-- | mrbgems/mruby-class-ext/src/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-class-ext/src/class.c b/mrbgems/mruby-class-ext/src/class.c index 39c16fc48..290ddf4b3 100644 --- a/mrbgems/mruby-class-ext/src/class.c +++ b/mrbgems/mruby-class-ext/src/class.c @@ -49,7 +49,7 @@ mrb_mod_module_exec(mrb_state *mrb, mrb_value self) mrb_get_args(mrb, "*&!", &argv, &argc, &blk); c = mrb_class_ptr(self); - if (mrb->c->ci->acc < 0) { + if (mrb->c->ci->cci > 0) { return mrb_yield_with_class(mrb, blk, argc, argv, self, c); } mrb_vm_ci_target_class_set(mrb->c->ci, c); |
