Exclude builtin macros in m2ctx

This commit is contained in:
Aetias
2024-04-20 12:37:30 +02:00
parent fd0416402d
commit 9b3049e7e6
+2
View File
@@ -80,6 +80,8 @@ lines = ctx.splitlines(True)
for i in reversed(range(len(lines))):
if lines[i].startswith('#define __cplusplus'): lines.pop(i)
elif lines[i].startswith('#define __STDC_HOSTED__'): lines.pop(i)
elif lines[i].startswith('#define __STDC__'): lines.pop(i)
elif lines[i].startswith('#define __STDC_VERSION__'): lines.pop(i)
ctx = ''.join(lines)