mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-24 05:29:12 +00:00
wikiheaders: Fixed preprocessor line check to include #endif
.
Reference Issue #9557.
This commit is contained in:
parent
6b1a98e664
commit
2ee1c87eb0
1 changed files with 2 additions and 2 deletions
|
@ -860,7 +860,7 @@ while (my $d = readdir(DH)) {
|
|||
}
|
||||
|
||||
# We assume any `#define`s directly after the typedef are related to it: probably bitflags for an integer typedef.
|
||||
# We'll also allow lines that start with `#if` or `#else` or `#elif`
|
||||
# We'll also allow some other basic preprocessor lines.
|
||||
# Blank lines are allowed, anything else, even comments, are not.
|
||||
my $blank_lines = 0;
|
||||
my $lastpos = tell(FH);
|
||||
|
@ -870,7 +870,7 @@ while (my $d = readdir(DH)) {
|
|||
|
||||
if (/\A\s*\Z/) {
|
||||
$blank_lines++;
|
||||
} elsif (/\A\s*\#(define|if|else|elif)(\s+|\Z)/) {
|
||||
} elsif (/\A\s*\#(define|if|else|elif|endif)(\s+|\Z)/) {
|
||||
if ($blank_lines > 0) {
|
||||
while ($blank_lines > 0) {
|
||||
$additional_decl .= "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue