Jump to navigation Jump to search
Updated the explanation for our formatting conventions
== Use common sense ==
These are conventions which we try to follow when writing code for ScummVM. They are this way mainly for reasons of taste, however, sticking Sticking to a common set of formatting / indention rules also makes it slightly easier to read through our sourcessource 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 follow adhere to these rules.
As such we 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. But in actual code, use tabs for indentions (our tabs are assumed to be 4 spaces wide).
== Hugging braces ==


Navigation menu