The C and C ++ preprocessor is called cpp on most systems - you can use it directly:
cpp somefile.c
will preprocess somefile.c, expanding macros and writing the results to standard output. If you are using the Microsoft compiler:
cl -E somefile.c
will do the same if you have a compiler on your PATH.
source share