Skip to content

Commit

Permalink
Document C++11 enum classes in CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnr committed Sep 30, 2013
1 parent 396a9de commit aa26993
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Please follow these style guidelines for C++ & Objective C code:
* Follow the C++ 2003 (TR1) standard.
The `<Gosu/TR1.hpp>` header facilitates this.
* Use `JavaClassNames`, `javaVariables.javaMethods()`, `AND_JAVA_CONSTANTS`.
For enums, follow the Delphi style: `enum AlphaMode { amDefault, amAdditive }`
For C enums, follow the Delphi style: `enum AlphaMode { amDefault, amAdditive };`
For C++11 enums, follow the Java style: `enum class AlphaMode { DEFAULT, ADDITIVE };`
* Don't worry too much about trailing spaces or Windows/UNIX newlines.
But please ensure that your commit does not change lines or files that you haven't touched otherwise.
* Indent in multiples of four spaces (not tabs). Don't use formatting that will break when using a proportional font.
Expand Down

0 comments on commit aa26993

Please sign in to comment.