1,079
edits
m (fine-tuning) |
(Updated the explanation for our formatting conventions) |
||
Line 1: | Line 1: | ||
== Use common sense == | == Use common sense == | ||
These are conventions which we try to follow when writing code for ScummVM. | These are conventions which we try to follow when writing code for ScummVM. Sticking to a common set of formatting / indention rules makes it easier to read through our source base (which now exceed half a million lines of code by far, making this quite important). If you want to submit patches, please try to adhere to these rules. | ||
We don't always follow these rules slavishly, in certain cases it is OK (and in fact might be favorable) to stray from them. Applying common sense, as usual, is a good idea. | |||
In the following examples tabs are replaced by spaces for visual consistency with the Code Formatting Conventions. | In the following examples tabs are replaced by spaces for visual consistency with the Code Formatting Conventions. But in actual code, use tabs for indentions (our tabs are assumed to be 4 spaces wide). | ||
== Hugging braces == | == Hugging braces == |
edits