Open akrzemi1 opened 9 months ago
https://github.com/ned14/pcpp/issues/53 has a workaround for lack of __has_include
.
Unless you turn on a --passthru-*
option pcpp
will behave like a normal C++ preprocessor and expand all macros.
FYI https://github.com/ned14/outcome/blob/develop/CMakeLists.txt#L115 is how Outcome uses pcpp
to generate its single include edition, and may be a good source of inspiration.
I was trying to use
pcpp
(1.30) on this header-only library: https://github.com/tzlaine/parserI am using command
I am encountering two problems.
__has_include
and ends with an error when it encounters one.#define
even though one sees plenty of them when one looks through the header files of the library.Any help would be most appreciated.