Fix preprocessor directive recognition in list-enum-consts.pl

This commit is contained in:
Christoph M. Wintersteiger
2019-08-23 09:57:02 +01:00
committed by Janos Follath
parent 652d909284
commit 13e2bd77a3
+1 -1
View File
@@ -22,7 +22,7 @@ while (<>)
$state = 'in';
} elsif( $state eq 'in' and /}/ ) {
$state = 'out';
} elsif( $state eq 'in' and not (/^#if/ or /#endif/)) {
} elsif( $state eq 'in' and not /^#/) {
s/=.*//; s!/\*.*!!; s/,.*//; s/\s+//g; chomp;
push @consts, $_ if $_;
}