From 02ea090ac77224c803668076da50a4bbace0c5d2 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 2 Jun 2017 13:40:03 -0700 Subject: [PATCH] We use #pragma once --- doc/CODING_STYLE.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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:

- +