From b8c4ea3cd12305a1e23037a74482b72a89025351 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 24 Jan 2024 12:38:44 -0800 Subject: [PATCH] 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 --- build-scripts/rename_macros.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-scripts/rename_macros.py b/build-scripts/rename_macros.py index a3e7cb8400..2e3d96db11 100755 --- a/build-scripts/rename_macros.py +++ b/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)