From 43886f3804567d8330eb3797d40065e0e7001cf5 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 31 Oct 2015 01:02:26 +0000 Subject: 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 --- gc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index e57d616f62..fcfd53da49 100644 --- a/gc.c +++ b/gc.c @@ -1756,8 +1756,7 @@ newobj_init(VALUE klass, VALUE flags, VALUE v1, VALUE v2, VALUE v3, int wb_prote #endif #if GC_DEBUG - RANY(obj)->file = rb_sourcefile(); - RANY(obj)->line = rb_sourceline(); + RANY(obj)->file = rb_source_loc(&RANY(obj)->line); assert(!SPECIAL_CONST_P(obj)); /* check alignment */ #endif -- cgit v1.2.3