Step Into Labs

Step Into C · Lesson 17 · Systems C

The Preprocessor

Macros, conditional compilation, include guards and multi-file projects.

Part of Step Into C. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

Lines beginning with # are handled by the preprocessor, which runs before the compiler and works on text. It knows nothing about C types. It just rewrites your source.

In this lesson

Missions

  1. A safe SQUARE
  2. Where am I?
  3. Which platform?
  4. Macro toolbox