Preprocess, but do not expand macros?

Larry Riedel larryr@saturn.sdsu.edu
Wed Jul 3 13:59:00 GMT 2002


> > Is there a simple way for me to tell gcc/cpp to run
> > the preprocessor, but do nothing more than remove the
> > code which would not be present after if/ifdef/ifndef?
> 
> Not gcc nor cpp itself, but there is a tool out there in
> some OS's that is called "unifdef".

I see.  Yes, in fact the comp.lang.c FAQ says something
about it... oops.  It looks like there is an unifdef in
the source for FreeBSD which may compile elsewhere too.


Larry



More information about the Gcc-help mailing list