Browse Source

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

Reference PR #12676.
Ryan C. Gordon 1 month ago
parent
commit
a0fa64a91c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build-scripts/wikiheaders.pl

+ 1 - 1
build-scripts/wikiheaders.pl

@@ -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";