diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-10 02:16:00 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-10 02:16:00 +0000 |
commit | 9ef6eefbd30c54931a1fb06712f370e1853188e7 (patch) | |
tree | d61a21f31679d4f73df308a6be10b8be0498baff /load.c | |
parent | b104e2524ddd8f8c34918a31dbfca54169dd0535 (diff) | |
download | ruby-9ef6eefbd30c54931a1fb06712f370e1853188e7.tar.gz |
* 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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |