You can do this with most compilers, for example. with gcc:
$ gcc -E
it just starts the preprocessor and then stops, providing you with preprocessed output on stdout.
If you use Xcode, although you donβt even need to do this - depending on which version of Xcode you are using, you can just select Preprocess
from the Build
menu (which caused it in Xcode 3.x - if you use Xcode 4, maybe it has been moved / renamed). See: Xcode Preprocessor Output
source share