This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Macro expansion without merging include files
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