Re: Re: Using #define's in .m files
Re: Re: Using #define's in .m files
- Subject: Re: Re: Using #define's in .m files
- From: "Shawn Erickson" <email@hidden>
- Date: Fri, 1 Sep 2006 11:34:45 -0700
On 9/1/06, Steve Mills <email@hidden> wrote:
On Sep 1, 2006, at 13:14, Chris Espinosa wrote:
> This should work. Are you sure that your pch file is set as the
> Prefix file for the target that's compiling your .m?
Yes, because the macro works in all the .cp files. The .m file is new
(just starting to delve into using Cocoa wrappers in our Carbon
apps), and the macro has always worked in the past. Could there be a
problem with the Obj-C preprocessor that leaves empty macros in
place? Like if the macro is #defined to nothing, it just leaves the
macro name in place?
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).
-Shawn
_______________________________________________
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