mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use ec
directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
abfdaf20a6
commit
0c6e5c7880
1 changed files with 2 additions and 2 deletions
|
@ -258,13 +258,13 @@ method_definition_set(const rb_method_entry_t *me, rb_method_definition_t *def,
|
|||
case VM_METHOD_TYPE_ATTRSET:
|
||||
case VM_METHOD_TYPE_IVAR:
|
||||
{
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
const rb_execution_context_t *ec = GET_EC();
|
||||
rb_control_frame_t *cfp;
|
||||
int line;
|
||||
|
||||
def->body.attr.id = (ID)(VALUE)opts;
|
||||
|
||||
cfp = rb_vm_get_ruby_level_next_cfp(th->ec, th->ec->cfp);
|
||||
cfp = rb_vm_get_ruby_level_next_cfp(ec, ec->cfp);
|
||||
|
||||
if (cfp && (line = rb_vm_get_sourceline(cfp))) {
|
||||
VALUE location = rb_ary_new3(2, rb_iseq_path(cfp->iseq), INT2FIX(line));
|
||||
|
|
Loading…
Reference in a new issue