ned14 / pcpp

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

Feature request: consider support for __has_include #77

Closed willwray closed 1 year ago

willwray commented 1 year ago

__has_include is a handy feature (C++17 and coming in C23)

If added to pcpp it could be controlled by a commandline flag. Existing -U or -D options may suffice:

-U__has_include disable the feature, enabled by default -D__has_include enable the feature, disabled by default

U like the first alternative? Default enabled seems ok. D to enable seems downright wrong, am i right.

willwray commented 1 year ago

oops #53 already open, closing