summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
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 a2986d4..ea22d5b 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;