standalone C++ preprocessor
I'm looking for a standalone C++ preprocessor. I'll use with another language, so there's no point in running through a full fledged compiler, but it's a very limited script language, so the #define and #if and other directives will help me a lot. For example, I'd be writing a file like this: #define DEBUG do some stuff #ifdef DEBUG show a message box or whatever #endif do some more stuff
I found something which fits my needs, mcpp. It's a simple to use preprocessor and supports output to other languages thanks to a command line switch.
How about the GNU C preprocessor?
You can also take a look into M4 preprocessor if you want some processing power greater than C/C++ preprocessor has. For example - M4 supports recursive macros, which isn't supported by C/C++ macro processor.
Progress ABL How to Test for WEBSPEED in the PRE-PROCESSOR
I want to nest include files inside include files. Why cant I do that in Inno Setup?
Discriminating between (small) numbers and everything else in C preprocessor
Defining preprocessor symbols for CLion analyzer
Check multiple conditions at once using m4 preprocessor
XC8 warning: (107) illegal # directive “foo”
Compiling with ocamlbuild and camlp5
How not to output comments using the -C operation in mcpp
C++ Builder File Version not correct
How do you a preprocess statement for #include
Does the preprocessor pass environment variables?
YAML preprocessor / macro processor
Pre-Processing using m4
Is there a practical reason for “#if defined(X) && (X != 0)”?
How to check for presence of a directory in Inno Setup preprocessor?
What are analogs of “#ifdef”, “#ifndef”, “#else”, “#elif”, “#define”, “#undef” in D programming lnaguage?