Everything About ___
Live briefing

Everything about Include guard

Macro guard in C/C++ to block multiple inclusions

In the C and C++ programming languages, an #include guard, sometimes called a macro guard, header guard or file guard, is a way to avoid the problem of double inclusion when dealing with the include directive. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: Include guardA 5-minute orientation
  2. Pick up a classic book: Mao Tŝe-tung's quotationsThe most-reprinted book on the subject
  3. Go sideways: Pragma onceA closely related topic
  4. Go sideways: C preprocessorA closely related topic

📖 Definitions

Noun In C and C++, a preprocessor directive used in header files to prevent them from being included multiple times.

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics