• 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: Using #define's in .m files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using #define's in .m files


  • Subject: Re: Using #define's in .m files
  • From: Steve Mills <email@hidden>
  • Date: Fri, 1 Sep 2006 14:02:02 -0500

On Sep 1, 2006, at 13:34, Shawn Erickson wrote:

Do you include the header in your pch only for C++ code? (is it
wrapped by a check for c++).

Remember .m files are objective-c (C based) so C++ code isn't
supported in files of that type (at least as compile using defaults).
If you want C++ capabilities use objective-c++ (.mm).

Thanks, that helped. It wasn't being included in a place that doesn't have any __cplusplus checks around it, but was later included in a place that *was* in a __cplusplus block. Our all the various framework and portable files included in our pch for this app can cause a lot of confusion for the reader. :) And I even attempt to clean and simplify it from time to time.


Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/


_______________________________________________ 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: 
 >Using #define's in .m files (From: Steve Mills <email@hidden>)
 >Re: Using #define's in .m files (From: Chris Espinosa <email@hidden>)
 >Re: Using #define's in .m files (From: Steve Mills <email@hidden>)
 >Re: Re: Using #define's in .m files (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: Re: Using #define's in .m files
  • Next by Date: NSString constant and how to export them
  • Previous by thread: Re: Re: Using #define's in .m files
  • Next by thread: Shark and dSYM
  • Index(es):
    • Date
    • Thread