diff options
Diffstat (limited to 'tool/gen_dummy_probes.rb')
-rwxr-xr-x | tool/gen_dummy_probes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/gen_dummy_probes.rb b/tool/gen_dummy_probes.rb index 7d63cdfa3e..45222830f3 100755 --- a/tool/gen_dummy_probes.rb +++ b/tool/gen_dummy_probes.rb @@ -9,8 +9,8 @@ text = ARGF.read # remove comments text.gsub!(%r'(?:^ *)?/\*.*?\*/\n?'m, '') -# remove the pragma declarations -text.gsub!(/^#pragma.*\n/, '') +# remove the pragma declarations and ifdefs +text.gsub!(/^#(?:pragma|include|if|endif).*\n/, '') # replace the provider section with the start of the header file text.gsub!(/provider ruby \{/, "#ifndef\t_PROBES_H\n#define\t_PROBES_H\n#define DTRACE_PROBES_DISABLED 1\n") |