浏览代码

wikiheaders: Don't present printf-support compiler metadata in wiki.

Ryan C. Gordon 1 年之前
父节点
当前提交
c3a4b15a74
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      build-scripts/wikiheaders.pl

+ 3 - 0
build-scripts/wikiheaders.pl

@@ -919,6 +919,9 @@ while (my $d = readdir(DH)) {
                 }
                 }
             }
             }
 
 
+            $decl =~ s/\s*SDL_W?PRINTF_VARARG_FUNCV?\s*\(\d+\)\s*;\Z/;/;  # don't want this metadata as part of the documentation.
+            $decl =~ s/SDL_PRINTF_FORMAT_STRING\s*//;  # don't want this metadata as part of the documentation.
+
             # !!! FIXME: code duplication with typedef processing, below.
             # !!! FIXME: code duplication with typedef processing, below.
             # We assume any `#define`s directly after the function are related to it: probably bitflags for an integer typedef.
             # We assume any `#define`s directly after the function are related to it: probably bitflags for an integer typedef.
             # We'll also allow some other basic preprocessor lines.
             # We'll also allow some other basic preprocessor lines.