forked from lumail/lumail.obsolete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CODING-STYLE
54 lines (37 loc) · 1.07 KB
/
CODING-STYLE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Source Code Formatting
----------------------
To ensure that the code, potentially coming from many developers,
remains understandable here are some brief notes on coding-style:
* No TABs in source files.
* No single-line "//" comments.
* Indentation is four spaces.
* Braces go on their own lines.
Run "make style" to test the code prior to committing any changes.
Example of good style:
if ( foo )
{
..
}
else
{
...
}
Example of bad style:
if ( foo ) {
...
} else {
// This is a comment
...
}
Debug Target
------------
We explicitly build two versions of lumail when you run "make":
* lumail
* The real executable.
* lumail-debug
* A similar executable with additional debugging checks.
While I do not expect many people to run the latter version, because
it is slower, it is very useful to have. I will not change this
default behaviour because it can be useful.
I encourage additional assertions and checks being added to the
debug-binary.