This is how a function call must be formatted:
myfunc(arg1, arg2);
- no space between the name and the (
- space after commas
- standard libraries
- 3rd party libraries
These includes should only be in components.h
Includes from the yterm source code can be in any other file
Imports must be ordered based on the length of the text
int* b;
The pointer must be on the left side
if (...) {
}
else {
}
- } must be on a line on its own
- { must be on the line with the statement
- the else should be on a seperate line from the previous }
- camelCase for variables
- PascalCase for functions
- PascalCase for structs/enums/typedefs etc
- camelCase for file names
void myfunc() {
}
- use
//
for single linecomments
- Limited to 80 characters
- If lines are too long with paranthesis, split like this:
... (
...
)
...