Teach make-proto.pl about #define \-continuation.
This commit is contained in:

committed by
Nico Williams

parent
a86e1076a0
commit
2e0366b7a0
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user