Table of Contents
Conditional Compilation
Allows fine-tuning over what to compile and what not. Utilizes:
ifdef
ifndef
endif
ifdef: checks a condition if true to continue compiling before the nextendif
ifndef: checks a condition if false to continue compiling beforeendif
ifdef and ifndef can both be replaced with if defined(arg)
and if !defined(arg)
respectively and both can be used as Preprocessor Directives
ifdef Example
ifndef Example
if 0
used as comments to block lines of code from compilation
temporarily ‘remove’ the comment by changing it to if 1