AGS Engine Coding Conventions: Difference between revisions
no edit summary
(Updated requirements for number of spaces in the indentation) |
No edit summary |
||
Line 22: | Line 22: | ||
{ // opening brace | { // opening brace | ||
// this code is inside the braces | |||
} // closing brace | } // closing brace | ||
Line 128: | Line 128: | ||
{ | { | ||
case 1: | case 1: | ||
DoSomething(); | |||
break; | |||
case 2: | case 2: | ||
case 3: | case 3: | ||
DoSomethingElse(); | |||
break; | |||
default: | default: | ||
// this default case can't actually happen, but is provided for clarity and to prevent compiler warnings | |||
break; | |||
} | } | ||
Line 163: | Line 163: | ||
void MyTemplateFunction() | void MyTemplateFunction() | ||
{ | { | ||
// blah! | |||
} | } | ||