C/C++ preprocessor defines and expands macros and processes '#if', '#include' and some other directives. MCPP is an alternative C/C++ preprocessor with the highest conformance. It supports multiple standards: K&R, ISO C90, ISO C99, and ISO C++98. MCPP is especially useful for debugging a source program which uses complicated macros and also useful for checking portability of a source. Though mcpp could be built as a replacement of GCC's resident preprocessor, this port installs a program which behaves independent from GCC.
C/C++ preprocessor defines and expands macros and processes '#if', '#include' and some other directives. MCPP is an alternative C/C++ preprocessor with the highest conformance. It supports multiple standards: K&R, ISO C90, ISO C99, and ISO C++98. MCPP is especially useful for debugging a source program which uses complicated macros and also useful for checking portability of a source. Though mcpp could be built as a replacement of GCC's resident preprocessor, this port installs a program which behaves independent from GCC.
To install mcpp, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install mcpp
To see what files were installed by mcpp, run:
port contents mcpp
To later upgrade mcpp, run:
sudo port selfupdate && sudo port upgrade mcpp
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.