mirror of https://github.com/bitcoin/bitcoin.git
doc: Remove section about include guards
This commit is contained in:
parent
fad6cd739b
commit
fa00b8c02c
|
@ -1160,16 +1160,6 @@ namespace {
|
|||
|
||||
- *Rationale*: Avoids confusion about the namespace context.
|
||||
|
||||
- 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
|
||||
-----
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ def main():
|
|||
|
||||
if count != 3:
|
||||
print(f'{header_file} seems to be missing the expected '
|
||||
'include guard:')
|
||||
'include guard to prevent the double inclusion problem:')
|
||||
print(f' #ifndef {header_id}')
|
||||
print(f' #define {header_id}')
|
||||
print(' ...')
|
||||
|
|
Loading…
Reference in New Issue