commit | 5f941573b0040c1b27014b4756155c86fe896b9f | [log] [tgz] |
---|---|---|
author | Vadim Yanitskiy <axilirator@gmail.com> | Thu Aug 31 01:20:18 2017 +0700 |
committer | Vadim Yanitskiy <axilirator@gmail.com> | Sun Dec 31 12:20:59 2017 +0100 |
tree | 5f25a07ce76b2822fe906ae88def9bb16c24ee7a | |
parent | 30209cedddb3b6ece5614b40f65f6a04e84388b4 [diff] |
Use '#pragma once' instead of include guard The most compilers today do support the '#pragma once', which is designed to cause the current source file to be included only once in a single compilation. One has several advantages, including: less code, avoidance of name clashes, and sometimes improvement in compilation speed. See: https://en.wikipedia.org/wiki/Pragma_once for details.