• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Partial" preprocessing of files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: "Partial" preprocessing of files? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Using XCTest on a static library with a bundle
  • Next by Date: Xcode 4.6.3 and Mavericks
  • Previous by thread: Re: "Partial" preprocessing of files?
  • Next by thread: Xcode 4.6.3 and Mavericks
  • Index(es):
    • Date
    • Thread