• 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: Jens Alfke <email@hidden>
  • Date: Tue, 22 Oct 2013 20:41:56 -0700


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.)

—Jens
 _______________________________________________
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

  • Follow-Ups:
    • Re: "Partial" preprocessing of files?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Code Signing Key Revocation Procedure?
  • Next by Date: Re: Using XCTest on a static library with a bundle
  • Previous by thread: Re: Code Signing Key Revocation Procedure?
  • Next by thread: Re: "Partial" preprocessing of files?
  • Index(es):
    • Date
    • Thread