diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 11:02:16 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-28 11:02:16 +0000 |
commit | c12897cbea435f39ceef1e26be2676835aa02d04 (patch) | |
tree | e64b3b5004eb99ede7d95634f05a1bc5459a5b22 /vm.c | |
parent | 874d6b329ec85d9109e79e3caca4ab15a4ec0638 (diff) |
* vm.c (REWIND_CFP): use `ec` directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2617,12 +2617,12 @@ vm_define_method(rb_thread_t *th, VALUE obj, ID id, VALUE iseqval, int is_single } #define REWIND_CFP(expr) do { \ - rb_thread_t *th__ = GET_THREAD(); \ - VALUE *const curr_sp = (th__->ec->cfp++)->sp; \ - VALUE *const saved_sp = th__->ec->cfp->sp; \ - th__->ec->cfp->sp = curr_sp; \ + rb_execution_context_t *ec__ = GET_EC(); \ + VALUE *const curr_sp = (ec__->cfp++)->sp; \ + VALUE *const saved_sp = ec__->cfp->sp; \ + ec__->cfp->sp = curr_sp; \ expr; \ - (th__->ec->cfp--)->sp = saved_sp; \ + (ec__->cfp--)->sp = saved_sp; \ } while (0) static VALUE |