Update CODING-GUIDELINES

This commit is contained in:
LibretroAdmin 2022-10-04 17:26:23 +02:00 committed by GitHub
parent 1a46943a76
commit 1eebd1196e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,5 +113,8 @@ C89-compliant.
Miscellaneous
-------------
- Brace usage follows "Allman style". The brace associated with a control statement is placed on the following line,
indented to the same level as the control statement.
Statements within the braces are indented to the next level.
- A single statement block must not include brackets (unless the block uses a macro that expends into multiple lines)
- If possible, avoid 'while (true)' and use 'for (;;)' instead