Overview of ucpp
windowsucpp is a lightweight, fast C preprocessor that is fully compliant with the ISO C99 standard (ISO Standard 9899:1999). It is designed to be used either as a standalone command-line program or as an embeddable library/integrated lexer for other projects.
ucpp operates in two distinct modes:
- Lexer Mode: When linked to other code, ucpp acts as an integrated lexer. It outputs a stream of tokens one at a time via calls to the
lex()function. - Non-Lexer Mode: ucpp preprocesses text and outputs the resulting text to a file descriptor. If linked to other code, the
cpp()function must be called repeatedly; otherwise, it functions as a standalone binary.