• 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
#define not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#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
  • Follow-Ups:
    • Re: #define not working
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Smart Crash Reports (was Re: Changing the "Report to Apple" crash dialog?)
  • Next by Date: Re: #define not working
  • Previous by thread: Re: Changing the "Report to Apple" crash dialog?
  • Next by thread: Re: #define not working
  • Index(es):
    • Date
    • Thread