Re: #define and if statements
Re: #define and if statements
- Subject: Re: #define and if statements
- From: Graham Cox <email@hidden>
- Date: Sat, 27 Feb 2010 17:27:29 +1100
On 27/02/2010, at 5:22 PM, Adam Gerson wrote:
> #define IsDemo NO;
> What am I doing wrong?
Leave out the semi-colon. #define is a macro, the complete text is simply substituted for the name before compilation even starts, so you have the equivalent of if(NO;){...} which is invalid syntax.
--Graham
_______________________________________________
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