... | ... | @@ -46,10 +46,11 @@ Many of the rules of the [FreeBS kernel style](https://www.freebsd.org/cgi/man.c |
|
|
|
|
|
* preprocessor statements
|
|
|
* We use `#ifndef _HEADER_FILE_H_` as header guards (for file header_file.h)
|
|
|
* The `#endif` statement is followed by comment specifying corresponding `#ifdef` or `#if` statement (i.e. #endif \* _HEADER_FILE_H_ *\)
|
|
|
* The `#endif` statement is followed by comment specifying corresponding `#ifdef` or `#if` statement (i.e. `#endif \* _HEADER_FILE_H_ *\`)
|
|
|
* We use `#else` statements followed by a comment with the negation of the condition that leads to the else statement.
|
|
|
* We prefer C-style commentaries.
|
|
|
|
|
|
* Functions visible only inside a compilation unit (.c or .cpp file) must be `static`.
|
|
|
|
|
|
## Doxygen
|
|
|
|
... | ... | |