|
|
@ -5,6 +5,7 @@ Please be consistent with the existing coding style. |
|
|
|
|
|
|
|
|
|
|
|
Block style: |
|
|
|
Block style: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` cpp |
|
|
|
bool Function(char* psz, int n) |
|
|
|
bool Function(char* psz, int n) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Comment summarising what this section of code does |
|
|
|
// Comment summarising what this section of code does |
|
|
@ -19,6 +20,7 @@ Block style: |
|
|
|
// Success return is usually at the end |
|
|
|
// Success return is usually at the end |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
- ANSI/Allman block style |
|
|
|
- ANSI/Allman block style |
|
|
|
- 4 space indenting, no tabs |
|
|
|
- 4 space indenting, no tabs |
|
|
|