mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-28 23:43:01 +00:00
update contributing guidelines
This commit is contained in:
parent
43ddfb8b5e
commit
2dd5e85299
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ the coding style is described here:
|
|||
- in float/double operations, always use decimal and `f` if single-precision.
|
||||
- e.g. `1.0f` or `1.0` instead of `1`.
|
||||
- prefer `NULL` over `nullptr` or any other proprietary null.
|
||||
- don't use `auto` unless needed.
|
||||
- only use `auto` if needed.
|
||||
- avoid using `goto` unless absolutely required.
|
||||
- use `String` for `std::string` (this is typedef'd in ta-utils.h).
|
||||
- prefer using operator for String (std::string) comparisons (a=="").
|
||||
- if you have to work with C strings, only use safe C string operations:
|
||||
|
|
Loading…
Reference in a new issue