mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-12-03 03:16:41 -08:00
Update C writing guidelines in CONTRIBUTING.md
Clarified guidelines for writing in C, emphasizing RAII patterns.
This commit is contained in:
1 parent
eaab4698eb
commit
00e904539e
1 file changed
+1
-1
+1
-1
@@ -105,5 +105,5 @@ if (conditional)
|
|||||||
* We don't use GSL.
|
* We don't use GSL.
|
||||||
* Don't throw exceptions.
|
* Don't throw exceptions.
|
||||||
* Stick to smart pointers. For interfacing with C Win32 API and raw buffers, use `unique_plain_ptr`.
|
* Stick to smart pointers. For interfacing with C Win32 API and raw buffers, use `unique_plain_ptr`.
|
||||||
* Writing in C is also completely acceptable.
|
* Writing in C is also completely acceptable but prefer to use RAII patterns.
|
||||||
* Other than that, there are no strict rules for code formatting, but please attempt to emulate the style around the code you are modifying.
|
* Other than that, there are no strict rules for code formatting, but please attempt to emulate the style around the code you are modifying.
|
||||||
Reference in new issue
Block a user