summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-10 02:16:00 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-10 02:16:00 +0000
commit9ef6eefbd30c54931a1fb06712f370e1853188e7 (patch)
treed61a21f31679d4f73df308a6be10b8be0498baff /load.c
parentb104e2524ddd8f8c34918a31dbfca54169dd0535 (diff)
* probes.d: updating probes to be more symmetrical, adding
documentation. * load.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r--load.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/load.c b/load.c
index a2986d42ed..ea22d5bebd 100644
--- a/load.c
+++ b/load.c
@@ -638,7 +638,9 @@ rb_f_load(int argc, VALUE *argv)
rb_load_internal(path, RTEST(wrap));
if (RUBY_DTRACE_LOAD_RETURN_ENABLED()) {
- RUBY_DTRACE_LOAD_RETURN(StringValuePtr(fname));
+ RUBY_DTRACE_LOAD_RETURN(StringValuePtr(fname),
+ rb_sourcefile(),
+ rb_sourceline());
}
return Qtrue;
@@ -941,7 +943,9 @@ rb_require_safe(VALUE fname, int safe)
th->errinfo = errinfo;
if (RUBY_DTRACE_REQUIRE_RETURN_ENABLED()) {
- RUBY_DTRACE_REQUIRE_RETURN(StringValuePtr(fname));
+ RUBY_DTRACE_REQUIRE_RETURN(StringValuePtr(fname),
+ rb_sourcefile(),
+ rb_sourceline());
}
return result;