wikiheaders: Don't ignore macro symbols that are defined without any content.

Reference PR #12676.
This commit is contained in:
Ryan C. Gordon
2025-10-25 15:05:36 -04:00
parent acaf53926c
commit a0fa64a91c

View File

@@ -1449,7 +1449,7 @@ while (my $d = readdir(DH)) {
}
$decl .= $additional_decl;
} elsif ($symtype == 2) { # a macro
if ($decl =~ /\A\s*\#\s*define\s+(.*?)(\(.*?\)|)\s+/) {
if ($decl =~ /\A\s*\#\s*define\s+(.*?)(\(.*?\)|)(\s+|\Z)/) {
$sym = $1;
} else {
#print "Found doxygen but no macro:\n$str\n\n";