From 17b19ca0f8c61c2e955a3a040965dcbab70a03b3 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 1 Dec 2012 15:25:31 +0000 Subject: * 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 --- tool/gen_dummy_probes.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'tool/gen_dummy_probes.rb') diff --git a/tool/gen_dummy_probes.rb b/tool/gen_dummy_probes.rb index 46af8cbb5c..e3d9232e52 100755 --- a/tool/gen_dummy_probes.rb +++ b/tool/gen_dummy_probes.rb @@ -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 -- cgit v1.2.3