Teach make-proto.pl about #define \-continuation.

This commit is contained in:
Roland C. Dowdeswell
2019-10-29 19:56:45 +00:00
committed by Nico Williams
parent a86e1076a0
commit 2e0366b7a0

View File

@@ -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;
}