RidgeRun Developer Manual/Coding Styles/C++: Difference between revisions

Line 26: Line 26:


For example, the file foo/src/bar/baz.h in project foo should have the following guard:
For example, the file foo/src/bar/baz.h in project foo should have the following guard:
<syntaxhighlight lang="c++">
#ifndef FOO_BAR_BAZ_H_
#define FOO_BAR_BAZ_H_
...
#endif  // FOO_BAR_BAZ_H_
</syntaxhighlight>


=== Comments ===
=== Comments ===