A preprocessor option used in the C programming language, allowing for conditional compiling. Use of #ifdef is generally acnowledged by programmers as being powerful, necessary, and ugly.