Commit 48c38c08 authored by Junchao Zhang's avatar Junchao Zhang
Browse files

Fix: skip #ifdef/#endif lines in input headers

Without doing so, the script wrongly thinks #ifdef etc. are part of
a subroutine's prototype line.

No review since F08 binding is experimental now.
parent 56fee8ce
...@@ -411,6 +411,9 @@ while (<FD>) { ...@@ -411,6 +411,9 @@ while (<FD>) {
} }
} }
# Skip lines starting with # such as #ifdef or #endif
if (/^\s*#/) { next; }
# If we found a semi-colon at the end, that's the end of the line. # If we found a semi-colon at the end, that's the end of the line.
# This is not perfect (e.g., does not work when a single line has # This is not perfect (e.g., does not work when a single line has
# multiple semi-colon separated statements), but should be good # multiple semi-colon separated statements), but should be good
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment