diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-31 01:02:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-31 01:02:26 +0000 |
commit | 1546ffed499aa40e905485b00293fbb530d7ebd1 (patch) | |
tree | 2ecaaf2cb405cdf4bdcbf420966fc3213c44a322 /vm_trace.c | |
parent | 954224f3c53a66004c7171c139b1a45668d91858 (diff) | |
download | bundler-1546ffed499aa40e905485b00293fbb530d7ebd1.tar.gz |
use rb_source_loc and rb_source_location
* error.c, eval.c, eval_error.c, gc.c, variable.c, vm.c,
vm_eval.c, vm_trace.c: use rb_source_loc/rb_source_location
instead of combination of rb_sourcefile/rb_sourcefilename and
rb_sourceline.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_trace.c')
-rw-r--r-- | vm_trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_trace.c b/vm_trace.c index 1ce11f9548..bf318b1960 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -607,11 +607,11 @@ get_event_id(rb_event_flag_t event) static void call_trace_func(rb_event_flag_t event, VALUE proc, VALUE self, ID id, VALUE klass) { - const char *srcfile = rb_sourcefile(); + int line; + const char *srcfile = rb_source_loc(&line); VALUE eventname = rb_str_new2(get_event_name(event)); VALUE filename = srcfile ? rb_str_new2(srcfile) : Qnil; VALUE argv[6]; - int line = rb_sourceline(); rb_thread_t *th = GET_THREAD(); if (!klass) { |