Compile-time settings and whatnot often make use of #define, #ifdef, and #if. I would like to make the case that using none of these is the best option, and plain old if-statements ought to be used most of the time.

http://www.randygaul.net/2016/07/07/ifdef-vs-if-and-if/

Advertisements