Conditional Compilation

In the previous post I used conditional compilation to enable and disable debugging messages, yet I didn’t take the time (for those new to C/Objective-C) to explain how everything worked.

There are three ways to control compilation, the options are as follows:

1
2
3
#if constant-expression
#ifdef identifier
#ifndef identifier

Continue reading