Improve #include guard macros
Avoid using reserved identifiers such as `_DOHINT_H` (fixes #1989), fix cases where the name doesn't match the filename, and make the naming more consistent and less likely to collide with include guards in other headers.
This commit is contained in:
parent
dd0c8632bf
commit
892557e799
21 changed files with 51 additions and 51 deletions
|
|
@ -189,15 +189,15 @@ is also used to try and detect constants. Therefore, if you have something like
|
|||
|
||||
<div class="code">
|
||||
<pre>
|
||||
#ifndef _FOO_H 1
|
||||
#define _FOO_H 1
|
||||
#ifndef FOO_H 1
|
||||
#define FOO_H 1
|
||||
...
|
||||
#endif
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
you may get some extra constants such as <tt>_FOO_H</tt> showing up in the scripting interface.
|
||||
you may get some extra constants such as <tt>FOO_H</tt> showing up in the scripting interface.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue