mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-28 04:23:42 +01:00
30 lines
782 B
Markdown
30 lines
782 B
Markdown
|
# Style guidelines in Collab RPG
|
||
|
|
||
|
(Mibi88) Fcalva, SlyVTT: What do you think of this?
|
||
|
|
||
|
Wrap the code on 80 columns. Align the wrapped code with the last parantheses,
|
||
|
etc.
|
||
|
|
||
|
Use curly braces with if, else, while and for statements if they can't hold on a
|
||
|
single line.
|
||
|
|
||
|
Put the curly braces after if, else, while or for statements and declarations of
|
||
|
procedures on the same line.
|
||
|
|
||
|
(Mibi88) SlyVTT, Fcalva, should be use a doc generation thing or do we describe
|
||
|
the procedures as I did so far?
|
||
|
|
||
|
Document your procedures as following:
|
||
|
|
||
|
```C
|
||
|
/* procedure_name()
|
||
|
*
|
||
|
* Describe what this procedure does.
|
||
|
* arg1: Describe this argument. If the text is too long, wrap it to the next
|
||
|
* line like this.
|
||
|
* arg2: Describe this argument, and so on.
|
||
|
*/
|
||
|
```
|
||
|
|
||
|
Have I forgotten something?
|