Re: Generating warning on particular build style
Re: Generating warning on particular build style
- Subject: Re: Generating warning on particular build style
- From: Sherm Pendley <email@hidden>
- Date: Tue, 19 Oct 2004 12:04:20 -0400
On Oct 18, 2004, at 4:29 PM, Amar Sagoo wrote:
I would like to force a warning to be shown every time I build my
product using the "Development" build style. This is to remind me of
the active style, so I remember to switch to "Deployment" before I
build a release.
Any suggestions?
Define a preprocessor macro in the definition for the "Development"
build style - Get Info on your project, and look at the "Styles" pane.
In the "Preprocessor Macros", add something like "-DMYAPP_DEVELSTYLE".
In your code, add the following:
#ifdef MYAPP_DEVELSTYLE
#warning "Danger, Will Robinson!"
#endif
sherm--
_______________________________________________
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