... | ... | @@ -45,7 +45,7 @@ Many of the rules of the [FreeBS kernel style](https://www.freebsd.org/cgi/man.c |
|
|
* Should a template if a template situation occur (e.g. to avoid errors when working with `foreach`).
|
|
|
|
|
|
* preprocessor statements
|
|
|
* We use `#ifndef _HEADER_FILE_H_` as header guards (for file header_file.h)
|
|
|
* We use `#ifndef _HEADER_FILE_H_` as header guards (for file header_file.h). Leading and trailing underscore is mandatory.
|
|
|
* 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.
|
... | ... | |