summaryrefslogtreecommitdiff
path: root/tool/gen_dummy_probes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/gen_dummy_probes.rb')
-rwxr-xr-xtool/gen_dummy_probes.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/gen_dummy_probes.rb b/tool/gen_dummy_probes.rb
index e3d9232e52..91191f1918 100755
--- a/tool/gen_dummy_probes.rb
+++ b/tool/gen_dummy_probes.rb
@@ -4,6 +4,9 @@
text = ARGF.read
text.gsub!(/^(?!#)(.*)/){$1.upcase}
+# remove comments
+text.gsub!(%r'/\*.*?\*/'m, '')
+
# remove the pragma declarations
text.gsub!(/^#pragma.*$/, '')