CLion
 
2024.3
Get CLion
Join the CLion Early Access Program and try out new features before they are released! Find out more

Header guards

Last modified: 26 May 2024

Header guard is a pattern of preprocessor directives that protect your header from being included multiple times. Header guard wraps the entire code content into an #ifndef (#if !defined, or another similar) block: