ned14 / pcpp

A C99 preprocessor written in pure Python
Other
215 stars 39 forks source link

Implement __has_include() now we have a proper expression evaluator #53

Open ned14 opened 3 years ago

willwray commented 1 year ago

A workaround, for the case that all __has_include(...) conditions should evaluate true or false is to define a function macro on the commandline. E.g. on bash, with quotes:

pcpp -D__has_include'(...)=1' test.h