Conditional warning
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