1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

use GET_VM() directly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2017-10-29 13:19:53 +00:00
parent a288b87c4c
commit e80ef4e6ce

View file

@ -331,8 +331,7 @@ location_to_str(rb_backtrace_location_t *loc)
lineno = location_lineno(loc->body.cfunc.prev_loc);
}
else {
rb_thread_t *th = GET_THREAD();
file = th->vm->progname;
file = GET_VM()->progname;
lineno = INT2FIX(0);
}
name = rb_id2str(loc->body.cfunc.mid);
@ -674,9 +673,7 @@ static void
oldbt_init(void *ptr, size_t dmy)
{
struct oldbt_arg *arg = (struct oldbt_arg *)ptr;
rb_thread_t *th = GET_THREAD();
arg->filename = th->vm->progname;
arg->filename = GET_VM()->progname;
arg->lineno = 0;
}