Re: #define not working
Re: #define not working
- Subject: Re: #define not working
- From: Stéphane Sudre <email@hidden>
- Date: Sat, 1 Oct 2005 23:07:35 +0200
On samedi, octobre 1, 2005, at 11:06 PM, Alexander Hartner wrote:
I have added the following section all over my code to use during
debugging:
#ifdef DEBUG_LOG
NSLog(@"Freeing memory for keychain: (0=Success) %d \n",sec);
#endif
The idea is that I can switch debug information on and off by either
including :
#define DEBUG_LOG
#define INFO_LOG
For some reason these instructions are ignored and I never see any
message on the output. When I remove the #ifdef ... #endif block and
leave the NSLog statement the message is printed correctly.
Any suggestion why the ifdef / define is not processed ? The
application is a Cocoa Command Line Tool, if that makes a difference.
Try:
#define DEBUG_LOG 1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden