Style guide #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 (egfor (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