• 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
Conditional warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Conditional warning


  • Subject: Conditional warning
  • From: Ben Lachman <email@hidden>
  • Date: Wed, 08 Oct 2008 22:29:59 -0400

I'm trying to stick a conditional #warning in one of the header's included from my projects .pch. I'd like this warning only to get fired once per compile so I have it enclosed in a conditional, but this doesn't seem to be working. Is there a way to only have a warning fire just once? These are my current (not working) compiler directives.

#define SOUSCHEF_DEBUG 1

#if SOUSCHEF_DEBUG
	#ifndef SOUSCHEF_DEBUG_WARN_ONCE
		#define SOUSCHEF_DEBUG_WARN_ONCE
		#warning Debug Flag Enabled
	#endif
#endif

Thanks,

->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email: email@hidden
twitter: @benlachman
mobile: 740.590.0009




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Conditional warning
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Strange bug: struct is not a type in C++?
  • Next by Date: Re: Conditional warning
  • Previous by thread: SenTestingKit, NSTask, and OBJC_DISABLE_GC
  • Next by thread: Re: Conditional warning
  • Index(es):
    • Date
    • Thread