ned14 / pcpp

A C99 preprocessor written in pure Python
Other
222 stars 41 forks source link

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

Open ned14 opened 4 years ago

willwray commented 2 years 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