#define not working
#define not working
- Subject: #define not working
- From: Alexander Hartner <email@hidden>
- Date: Sat, 1 Oct 2005 22:06:39 +0100
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.
_______________________________________________
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