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

Truncate string in cpp (preprocessor)
C++ precompiler conditionally include code
DDK preprocessor directives
Preprocessor, Postprocessor, Geometric Processor and NC processor
Gfortran pre-processor directives for Different Operating systems
Good data set for Pre-processing
IDE inserts incorrect #include statement
Save string in C preprocessor
Fortran preprocessing with Portland compiler
Making a macro expansion dependent on its arguments
How to set ISPP defines based on default Inno Setup variables?
standalone C++ preprocessor
Annotations in OCaml
Obtaining the include paths cpp searches
Test for empty macro definition
m4 does not obey expansion?

Categories

HOME
android
django
zend-framework
graphics
alarm
vxml
hugo
square
settings
google-cloud-datalab
pkcs#11
accessibility
spin
scrolltop
http-post
azure-powershell
coin3d
package.json
searchview
soci
boost-icl
symbols
kendo-mobile
pimcore
php-mysqlidb
short-url
google-api-client
has-and-belongs-to-many
ms-access-2003
exchangewebservices
subclass
browser-sync
custom-controls
cart
jmockit
glib
twos-complement
classcastexception
sharding
nested-lists
yowsup
docfx
wurfl
node-mssql
tasm
logback-groovy
apache-directory
stylecop
optimizely
double-click
ntvs
magento-2.0.7
lightning
amq
java-bytecode-asm
colorbar
android-testing
payload
janus
trigger.io
cd-burning
rxtx
filenet
android-instrumentation
javafx-css
angular2-testing
builtins
seek
firebase-security
dbamp
uiactionsheet
upx
yajsw
beanstalk
invoke-sqlcmd
themoviedb-api
xenomai
file-move
sql-server-data-tools
cakephp-2.7
angular-gettext
pseudo-class
post-commit-hook
device-tree
genymotion-call
nsmenu
ray
decoupling
menubar
git-repo
windows-embedded-standard
high-resolution
rfc5322
visual-studio-express
hidapi
workitem
diem
android-icons
swfobject
apache-abdera
alice
rmiregistry
objectquery
mapping-by-code
koken
isa-swizzling
stress
luabind
mbeans
dataform
zend-rest
glui
cuda.net
cardspace

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