Preprocessor directives like #define and #ifdef are commonly used to make source code easy to update and compile in a variety of execution environments. The preprocessor is instructed to take specific actions by directives in the source file.