diff --git a/doc/CODING_STYLE.html b/doc/CODING_STYLE.html index 67c109d8..c142f81b 100644 --- a/doc/CODING_STYLE.html +++ b/doc/CODING_STYLE.html @@ -225,16 +225,20 @@ possible.

The #define Guard

+

All header files should have #pragma once guards to prevent multiple inclusion.

+ +

All header files should have #define guards to prevent multiple inclusion. The format of the symbol name should be <PROJECT>_<PATH>_<FILE>_H_.

+
- +

To guarantee uniqueness, they should be based on the full path in a project's source tree. For example, the file foo/src/bar/baz.h in @@ -250,7 +254,7 @@ guard:

- +