mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 11:40:42 +02:00
Document include guard convention
This commit is contained in:
parent
6d36f599f8
commit
8af65d96f4
@ -514,6 +514,16 @@ namespace {
|
|||||||
source file into account. This allows quoted includes to stand out more when
|
source file into account. This allows quoted includes to stand out more when
|
||||||
the location of the source file actually is relevant.
|
the location of the source file actually is relevant.
|
||||||
|
|
||||||
|
- Use include guards to avoid the problem of double inclusion. The header file
|
||||||
|
`foo/bar.h` should use the include guard identifier `BITCOIN_FOO_BAR_H`, e.g.
|
||||||
|
|
||||||
|
```c++
|
||||||
|
#ifndef BITCOIN_FOO_BAR_H
|
||||||
|
#define BITCOIN_FOO_BAR_H
|
||||||
|
...
|
||||||
|
#endif // BITCOIN_FOO_BAR_H
|
||||||
|
```
|
||||||
|
|
||||||
GUI
|
GUI
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user