Re: "Partial" preprocessing of files?
Re: "Partial" preprocessing of files?
- Subject: Re: "Partial" preprocessing of files?
- From: Ken Thomases <email@hidden>
- Date: Wed, 23 Oct 2013 00:22:00 -0500
On Oct 22, 2013, at 10:41 PM, Jens Alfke wrote:
> On Oct 22, 2013, at 4:41 PM, Rick Mann <email@hidden> wrote:
>
>> Is there any way to get macro expansion in a source file without getting all the content of #import or #include files?
>
> Run it through a regexp that inserts “//“ before “#include” and “#import”, then preprocess the result? (It’s probably doable as a one-line shell command that pipes the file through sed and clang.)
That won't work if the preprocessor macros that he wants expanded were defined in the header files.
I very much doubt what he wants is possible, since incorporating the included header files is so central to preprocessing.
Regards,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden