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:
parent
a288b87c4c
commit
e80ef4e6ce
1 changed files with 2 additions and 5 deletions
|
@ -331,8 +331,7 @@ location_to_str(rb_backtrace_location_t *loc)
|
||||||
lineno = location_lineno(loc->body.cfunc.prev_loc);
|
lineno = location_lineno(loc->body.cfunc.prev_loc);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rb_thread_t *th = GET_THREAD();
|
file = GET_VM()->progname;
|
||||||
file = th->vm->progname;
|
|
||||||
lineno = INT2FIX(0);
|
lineno = INT2FIX(0);
|
||||||
}
|
}
|
||||||
name = rb_id2str(loc->body.cfunc.mid);
|
name = rb_id2str(loc->body.cfunc.mid);
|
||||||
|
@ -674,9 +673,7 @@ static void
|
||||||
oldbt_init(void *ptr, size_t dmy)
|
oldbt_init(void *ptr, size_t dmy)
|
||||||
{
|
{
|
||||||
struct oldbt_arg *arg = (struct oldbt_arg *)ptr;
|
struct oldbt_arg *arg = (struct oldbt_arg *)ptr;
|
||||||
rb_thread_t *th = GET_THREAD();
|
arg->filename = GET_VM()->progname;
|
||||||
|
|
||||||
arg->filename = th->vm->progname;
|
|
||||||
arg->lineno = 0;
|
arg->lineno = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue