Skip to content
scorpion007 edited this page Jun 11, 2012 · 3 revisions

New code should adhere to the following style for readability across various editors and terminals.

General style

  1. 4 spaces or tab-width 4 indent.
  2. 80 character limit per line guideline.

Technical notes

  1. 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!
Clone this wiki locally