• 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: gcc parsing error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc parsing error?


  • Subject: Re: gcc parsing error?
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Mon, 1 Jun 2009 16:42:01 -0500

On Mon, Jun 1, 2009 at 4:33 PM, Dave DeLong <email@hidden> wrote:
> I'm writing a simple test project to try and isolate some unexpected
> behavior, and found more unexpected behavior (not what I was looking for).
>
> I'm trying to use a simple NSAssert macro, like so:
>
> NSAssert(NO, [NSString stringWithFormat:@"Caught unexpected exception: %@",
> e]);
>
> However, when I try to compile, I get the error that "macro NSAssert passed
> 3 arguments, but takes just 2".

Ugg. Sounds like a bug. What happens when you do this:

NSAssert(NO, ([NSString stringWithFormat:@"Caught unexpected
exception: %@", e]));
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: gcc parsing error?
      • From: Dave DeLong <email@hidden>
References: 
 >gcc parsing error? (From: Dave DeLong <email@hidden>)

  • Prev by Date: gcc parsing error?
  • Next by Date: Re: gcc parsing error?
  • Previous by thread: gcc parsing error?
  • Next by thread: Re: gcc parsing error?
  • Index(es):
    • Date
    • Thread