tcpp
tcpp copied to clipboard
A simple, single-header library which implements C preprocessor
I see the interface of the preprocessor is to return the whole string by `preprocessor.Process()`. Is it possible to make some function like `preprocessor.GetToken()`, so the high level Parser can...
The include model doesn't lend itself very well to good memory management. The includer callback expects to receive a pointer to a IInputStream, but doesn't really clean up after itself...
This PR adds support for external user-defined macros, e.g. those that may come from the compiler command line options when we do `gcc -DFOO=\"bar\"`. Currently, tcpp assumes all macro definitions...