Inclusion Guards

Just to clear up what we’re talking about, an inclusion guard looks like this:


...//your header

#endif //HEADER_FILE_H

It consists of three preprocessor directives around the code of your header file.

Most IDEs add these for you automatically when you create a header, but it’s well worth having an appreciation of why they are there.

Read moreInclusion Guards