aboutsummaryrefslogtreecommitdiffstats
path: root/vm_args.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 13:22:04 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 13:22:04 +0000
commitb9c977768bcdc15fb700b1c10388e8141f336404 (patch)
tree8feddbfa970ca8663d196e050013800b8ff4030f /vm_args.c
parentc9d3538335cc2a3dc7305ebae63b99fcaa78624a (diff)
downloadruby-b9c977768bcdc15fb700b1c10388e8141f336404.tar.gz
`th` -> `ec` for backtrace functions.
* vm_backtrace.c: accept `ec` and rename `threadptr` to `ec`. * rb_threadptr_backtrace_object -> rb_ec_backtrace_object * rb_threadptr_backtrace_str_ary -> rb_ec_backtrace_str_ar * rb_threadptr_backtrace_location_ary -> rb_ec_backtrace_location_ary * threadptr_backtrace_to_ary -> ec_backtrace_to_ary * vm_eval.c (adjust_backtrace_in_eval): accepts `ec`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_args.c')
-rw-r--r--vm_args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_args.c b/vm_args.c
index 2bf3fad57e..0ca37c4109 100644
--- a/vm_args.c
+++ b/vm_args.c
@@ -697,11 +697,11 @@ raise_argument_error(rb_execution_context_t *ec, const rb_iseq_t *iseq, const VA
VM_BLOCK_HANDLER_NONE /* specval*/, Qfalse /* me or cref */,
iseq->body->iseq_encoded,
ec->cfp->sp, 0, 0 /* stack_max */);
- at = rb_threadptr_backtrace_object(rb_ec_thread_ptr(ec));
+ at = rb_ec_backtrace_object(ec);
rb_vm_pop_frame(ec);
}
else {
- at = rb_threadptr_backtrace_object(rb_ec_thread_ptr(ec));
+ at = rb_ec_backtrace_object(ec);
}
rb_ivar_set(exc, idBt_locations, at);