How to manually throw a compiler error in GCC and Xcode
Posted
by coneybeare
on Stack Overflow
See other posts from Stack Overflow
or by coneybeare
Published on 2010-06-08T02:44:37Z
Indexed on
2010/06/08
2:52 UTC
Read the original article
Hit count: 323
In xcode, while compiling apps with gcc, I want to throw compilation time errors if things like NSZombieEnabled is on for a distribution release, thus ensuring that compilation will fail and I won't accidentally do something stupid.
I did some googling, but could not figure out how to cause the compiler to bail if a certain condition is met. Surely it must be easy, am I just not finding it?
© Stack Overflow or respective owner