Skip to content

Commit

Permalink
Document include guard convention
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Mar 22, 2018
1 parent 6d36f59 commit 8af65d9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/developer-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,16 @@ namespace {
source file into account. This allows quoted includes to stand out more when
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
-----

Expand Down

0 comments on commit 8af65d9

Please sign in to comment.