瀏覽代碼

Don't add the FIXME for converted macros

We're pretty sure this is correct and anyone who runs this script is likely to have source control to see the differences
Sam Lantinga 1 年之前
父節點
當前提交
b8c4ea3cd1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build-scripts/rename_macros.py

+ 1 - 1
build-scripts/rename_macros.py

@@ -63,7 +63,7 @@ class PlatformMacrosCheck:
             original = m.group(0)
             match_start, _ = m.span(0)
             platform_start, platform_end = m.span(1)
-            new_text = "{0} /* FIXME: use '#ifdef {0}' or 'defined({0})' */".format(self.RENAMED_MACROS[macro])
+            new_text = self.RENAMED_MACROS[macro]
             r = original[:(platform_start-match_start)] + new_text + original[platform_end-match_start:]
             return r
         contents, _ = self.re_platform_macros.subn(cb, contents)