Macro expansion without merging include files
Claudio Bley
bley@CS.uni-magdeburg.de
Fri Oct 1 12:51:00 GMT 2004
On Fri, Oct 01, 2004 at 02:24:49PM +0200, lego@gentoo.se wrote:
> Is it possible to only expand macros in a c source file without invoking
> the other preprocessor directives? I have studied the manual for the
> preprocessor and the m4 macro expander without comming up with any
> solution. Are there any other solutions for this problem perhaps?
Why don't you just remove the unwanted include lines with a sed,
awk, perl or ... script and pipe it into the preprocessor?
--
Claudio
More information about the Gcc-help
mailing list