Found at: http://publish.ez.no/article/articleprint/27/ |
Coding Standards - Part 2 - Basic conventions |
Coding standards define a standard for the look and feel of your code. This is helpful to most projects, and to some it is a necessity. Especially in open source projects. In this second issue I'll show eZ system's standards regarding macros, indentation and brackets.
int meaning( int x, int y )
{
if ( x == y )
{
..
}
else if ( x > y )
{
..
}
else
{
..
}
return 42;
}
|