Re: receiving: "warning: ignoring #pragma mark"
Re: receiving: "warning: ignoring #pragma mark"
- Subject: Re: receiving: "warning: ignoring #pragma mark"
- From: Stuart Malin <email@hidden>
- Date: Sun, 1 Feb 2009 17:53:16 -1000
On Feb 1, 2009, at 10:07 AM, Steve Checkoway wrote:
On Jan 30, 2009, at 2:04 PM, Stuart Malin wrote:
Unfortunately, this disables a warning about *any* unknown pragma,
so now I am wondering if there might be a way to #define "pragma
mark" as a no-op...
Perhaps in the environment that supports the #pragma mark,
#define PragmaMark(mark) _Pragma( "mark " #mark )
and in the other environment
#define PragmaMark(mark)
Then use PragmaMark(--some-notation-or-other--).
Thanks for thinking about this Steve. Your solution is intriguing, but
misses the mark (pun intended) because the pragma mark is something
that Xcode recognizes. I suspect that on Darwin (where it is defined),
lines that begin with #pragma mark are turned into nothing by some pre-
processor action. Anyway, the point is, the source code file needs to
Have #pragma mark visible without the action of the pre-processor so
that Xcode can "see" it.
_______________________________________________
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