design:coding_style_guide
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| design:coding_style_guide [2025/05/04 18:24] – asie | design:coding_style_guide [2025/05/05 15:17] (current) – [Commenting] asie | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| ===== Code style ===== | ===== Code style ===== | ||
| - | * Braces are always on the same line, and are separated with a space. | + | |
| - | * If it doesn' | + | * If it doesn' |
| <code c> | <code c> | ||
| Line 46: | Line 46: | ||
| </ | </ | ||
| - | * Pointers are declared with the asterisk '' | + | |
| <code c> | <code c> | ||
| Line 52: | Line 52: | ||
| </ | </ | ||
| - | ===== Commenting | + | ===== Documentation |
| Use [[https:// | Use [[https:// | ||
| Line 58: | Line 58: | ||
| * Javadoc-style '' | * Javadoc-style '' | ||
| * For one-line comments, such as on enumerated types, '' | * For one-line comments, such as on enumerated types, '' | ||
| + | * When writing internal header macros/ | ||
| ===== Best practices ===== | ===== Best practices ===== | ||
design/coding_style_guide.1746383065.txt.gz · Last modified: by asie
