Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 1.19 KB
Dear contributor,
Please follow these style guidelines for new all new C/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 }
* Don't worry too much about trailing space or Windows/UNIX newlines. But please
ensure that your commit does not change lines or files that you otherwise
haven't touched.
* Indent in multiples of four spaces (not tabs). Don't use formatting that will
break when using a proportional font.
* Place { on its own line in C and C++, but on the same line within Objective C
* Align the pointer star to the left in C and C++ (char* str), but to the right
within Objective C classes (NSString *string).
* You don't have to break up lines of code at all, Xcode and MSVC can do by
themselves that to adjust to netbook screen sizes and split-screen coding.
* Place spaces only around infix operators: ((-4 + 6) * --a[76])
Do not use spaces after function names: f(foo, bar)
But put a space after flow control keywords: return 5, if (cond), switch (x).
Thanks. --Julian
Jump to Line
Something went wrong with that request. Please try again.