mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-03 04:05:49 +01:00
Updated Coding Style (C plus plus) (markdown)
@@ -34,7 +34,9 @@ static sint32 _nextGuestIndex;
|
||||
/// Local function declarations
|
||||
static rct_peep * GetLastGuest();
|
||||
|
||||
/// All functions should be prefixed with the name of the source file followed by '_'. In this case 'example_'. The name of the function should be lower case with underscores for spaces.
|
||||
/// All functions should be prefixed with the name of the source file followed
|
||||
/// by '_'. In this case 'example_'. The name of the function should be lower
|
||||
/// case with underscores for spaces.
|
||||
/// Only local functions need documentation (javadoc style)
|
||||
/// Global functions should have their documentation in the header file.
|
||||
|
||||
@@ -55,7 +57,8 @@ static rct_peep * GetLastGuest()
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/// Flag checking and integers representing booleans do not need to use boolean comparison operators.
|
||||
/// Flag checking and integers representing booleans do not need
|
||||
/// to use boolean comparison operators.
|
||||
if (!(gParkFlags & PARK_FLAG_OPEN))
|
||||
{
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user