Style guide #4

Open
opened 2023-07-14 09:56:54 +00:00 by Bottersnike · 0 comments
Owner

Function names: MicePascalCase when exported, PascalCase when static, _PascalCase allowable to indicate function should never be exported.

Variable names: m_ prefix for struct members. g_ prefix for globals. PascalCase with lowercase type prefix (see below). Non-prefixed struct members allowable when sensible (eg {int r; int g; int b}). Non-prefixed variavles allowable when sensible (eg for (int i = 0)

Struct names: SHOUTING_SNAKE_CASE. The same name should be used for the struct name and the typedef. Typedef should also define *PSHOUTING_SNAKE_CASE

Types:
https://learn.microsoft.com/en-us/windows/win32/stg/coding-style-conventions

Function names: `MicePascalCase` when exported, `PascalCase` when static, `_PascalCase` allowable to indicate function should never be exported. Variable names: `m_` prefix for struct members. `g_` prefix for globals. `PascalCase` with lowercase type prefix (see below). Non-prefixed struct members allowable when sensible (eg `{int r; int g; int b}`). Non-prefixed variavles allowable when sensible (eg `for (int i = 0`) Struct names: `SHOUTING_SNAKE_CASE`. The same name should be used for the struct name and the typedef. Typedef should also define `*PSHOUTING_SNAKE_CASE` Types: https://learn.microsoft.com/en-us/windows/win32/stg/coding-style-conventions
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bottersnike/micetools#4
No description provided.