This commit is contained in:
Miloslav Ciz 2025-05-08 20:41:37 +02:00
parent 8b530b5952
commit 64fd120266
35 changed files with 2034 additions and 2007 deletions

View file

@ -1089,7 +1089,7 @@ Creature named Hid (430 kg, 3 legs)
## Macros/Preprocessor
The C language comes with a feature called *preprocessor* which is necessary for some advanced things. It allows automatized modification of the source code before it is compiled.
The C language comes with a feature called *preprocessor* which is necessary for some advanced things. It allows automated modification of the source code before it is compiled.
Remember how we said that compiler compiles C programs in several steps such as generating object files and linking? There is one more step we didn't mention: **[preprocessing](preprocessing.md)**. It is the very first step -- the source code you give to the compiler first goes to the preprocessor which modifies it according to special commands in the source code called **preprocessor directives**. The result of preprocessing is a pure C code without any more preprocessing directives, and this is handed over to the actual compilation.