From 2e55a671e1ad3bee07f847d93b8a929dd0e7eb7e Mon Sep 17 00:00:00 2001 From: Ralph Tandetzky Date: Sat, 7 Mar 2015 20:17:48 +0100 Subject: [PATCH] Added "#pragma once" idea to include guards guideline. --- 03-Style.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/03-Style.md b/03-Style.md index 0ee0f28..7ba3449 100644 --- a/03-Style.md +++ b/03-Style.md @@ -113,6 +113,9 @@ class MyClass { #endif ``` +You may also consider to use the `#pragma once` directive instead which is quasi standard across many compilers. +It's short and makes the intent clear. + ## {} are required for blocks. Leaving them off can lead to semantic errors in the code.