mirror of
https://github.com/zeldaret/ph
synced 2026-05-31 09:21:38 -04:00
Exclude builtin macros in m2ctx
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user