Filter out gcc attributes
This commit is contained in:
parent
ac7231a882
commit
c65c566e09
1 changed files with 1 additions and 4 deletions
|
|
@ -141,10 +141,7 @@ proc getPreprocessor*(fullpath: string, mode = "cpp"): string =
|
||||||
else:
|
else:
|
||||||
if start:
|
if start:
|
||||||
rdata.add(
|
rdata.add(
|
||||||
line.multiReplace([("_Noreturn", ""), ("(())", ""), ("WINAPI", ""),
|
line.replace(re"__attribute__[ ]*\(\(.*?\)\) ", "")
|
||||||
("__attribute__", ""), ("extern \"C\"", "")])
|
|
||||||
.replace(re"\(\([_a-z]+?\)\)", "")
|
|
||||||
.replace(re"\(\(__format__[\s]*\(__[gnu_]*printf__, [\d]+, [\d]+\)\)\);", ";")
|
|
||||||
)
|
)
|
||||||
return rdata.join("\n")
|
return rdata.join("\n")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue