-
Notifications
You must be signed in to change notification settings - Fork 9
Coding style
scorpion007 edited this page Jun 11, 2012
·
3 revisions
New code should adhere to the following style for readability across various editors and terminals.
- 4 spaces or tab-width 4 indent.
- 80 character limit per line guideline.
- Don’t use the
_WINDOWS
macro (or any variations) in new code to check for the Windows platform. It is a completely made up, artificial symbol. Always use the_WIN32
macro, which is a predefined constant on all Windows compilers (especially VC). Note the leading underscore!