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: