mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/gen_dummy_probes.rb: add mode name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
66fd9d44d8
commit
17b19ca0f8
1 changed files with 1 additions and 0 deletions
|
@ -22,5 +22,6 @@ text.gsub!(/\([^,)]+,[^,)]+,[^,)]+,[^,)]+\)/, '(arg0, arg1, arg2, arg3)')
|
|||
text.gsub!(/\([^,)]+,[^,)]+,[^,)]+,[^,)]+,[^,)]+\)/, '(arg0, arg1, arg2, arg3, arg4)')
|
||||
|
||||
text.gsub!(/ *PROBE ([^\(]*)(\([^\)]*\));/, "#define RUBY_DTRACE_\\1_ENABLED() 0\n#define RUBY_DTRACE_\\1\\2\ do \{ \} while\(0\)")
|
||||
puts "/* -*- c -*- */"
|
||||
print text
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue