diff --git a/cf/make-proto.pl b/cf/make-proto.pl index 72b3993b8..36a040ce6 100644 --- a/cf/make-proto.pl +++ b/cf/make-proto.pl @@ -95,6 +95,13 @@ while(<>) { } elsif ($doxygen) { $funcdoc .= $_; next; } elsif ($comment) { next; } + # Handle CPP #define's + $define = 1 if /^\s*\#\s*define/; + if ($define) { + $define = 0 if ! /\\$/; + next; + } + if(/^\#if 0/) { $if_0 = 1; }