Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 489
DonkeyMaster Avatar asked Mar 15 '26 10:03

DonkeyMaster


1 Answers

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.

like image 82
DonkeyMaster Avatar answered Mar 17 '26 04:03

DonkeyMaster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!