How Arduino IDE pre-processing work?

The preprocessor is a "textual" pass through the source code.

Which has nothing to do with what the IDE does in terms of processing before it invokes the compiler.