Yes, the preprocessor is part of the C language. Conceptually, it starts before compiling the source.
Along with constant definitions, the preprocessor is used to implement two very important constructions:
#include , which adds other files to the compilation unit.
turn on the guards; those. template,
#if !defined(METAWORD) #define METAWORD 1 #endif
Out of interest, these two uses are preserved in C ++, a constant definition can be implemented in other ways (better?).
source share