Skip to content

Commit a0fa64a

Browse files
committed
wikiheaders: Don't ignore macro symbols that are defined without any content.
Reference PR #12676.
1 parent acaf539 commit a0fa64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-scripts/wikiheaders.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ sub generate_envvar_wiki_page {
14491449
}
14501450
$decl .= $additional_decl;
14511451
} elsif ($symtype == 2) { # a macro
1452-
if ($decl =~ /\A\s*\#\s*define\s+(.*?)(\(.*?\)|)\s+/) {
1452+
if ($decl =~ /\A\s*\#\s*define\s+(.*?)(\(.*?\)|)(\s+|\Z)/) {
14531453
$sym = $1;
14541454
} else {
14551455
#print "Found doxygen but no macro:\n$str\n\n";

0 commit comments

Comments
 (0)