diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-08-02 21:14:52 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-08-06 10:15:55 +0900 |
| commit | 8f386f7663b099ec6861ec97e2192cdd71fbf7ff (patch) | |
| tree | 774c7be8736ffad2a36f20024c9bfc590a6b85b8 /src/vm.c | |
| parent | 14c7a9c548ce7a1e38812fb4490e7c1a838652dc (diff) | |
| download | mruby-8f386f7663b099ec6861ec97e2192cdd71fbf7ff.tar.gz mruby-8f386f7663b099ec6861ec97e2192cdd71fbf7ff.zip | |
Remove utility functions: `mrb_vm_iv_{get,set}`.
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1141,7 +1141,7 @@ RETRY_TRY_BLOCK: /* A Bx R(A) := ivget(Bx) */ int a = GETARG_A(i); int bx = GETARG_Bx(i); - mrb_value val = mrb_vm_iv_get(mrb, syms[bx]); + mrb_value val = mrb_iv_get(mrb, regs[0], syms[bx]); regs[a] = val; NEXT; } @@ -1150,7 +1150,7 @@ RETRY_TRY_BLOCK: /* A Bx ivset(Syms(Bx),R(A)) */ int a = GETARG_A(i); int bx = GETARG_Bx(i); - mrb_vm_iv_set(mrb, syms[bx], regs[a]); + mrb_iv_set(mrb, regs[0], syms[bx], regs[a]); NEXT; } |
