JDx
JDx

Reputation: 2655

Create custom error on release build

Is there any way I can create a custom error message that displays as a reminder to myself and other colleagues that there is unfinished code in the app, if they try and do a release build?

Thanks for any help.

Upvotes: 3

Views: 167

Answers (1)

Phillip Mills
Phillip Mills

Reputation: 31016

How about:

#ifndef DEBUG
#error Don't release this
#endif

Upvotes: 1

Related Questions