preprocessor


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.

Related Links

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?

Categories

HOME
algorithm
gpu
case
knitr
edge
cublas
babeljs
mapbox
polling
google-cloud-datalab
elasticsearch-5
syntaxnet
gson
plist
ycsb
plink
cumulocity
jmp
lilypond
ios10.2
string-concatenation
perlbrew
itunes
fable-f#
soot
bringtofront
browser-sync
failover
mql
uitapgesturerecognizer
vex
papaparse
hard-drive
sql-server-ce
playframework-2.1
imagenet
amazon-ses
z-notation
bc
typesafe-config
tcc
angular-http
clang++
vaadin-charts
monkey-testing
mesosphere
fclose
geotiff
tinymce-3
arq
scalding
azure-cli
polyline
chromium-os
actor-platform
adafruit
file-uri
neon
swizzling
qiime
cda
thread-sleep
nio2
concept-insights
spring-retry
grgit
flock
pax-exam
evolus-pencil
uncompress
keyup
telepat
typeconverter
zend-currency
mass-assignment
cosine-similarity
viewer
strawberry-perl
lnk
tinyxml
onmousemove
iboutlet
apache-whirr
hibernateexception
agility.js
automationelement
lr
qglwidget
resharper-6.0
business-model
blind

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App