Updated Coding Style (markdown)

bunnei 2014-05-20 06:54:01 -07:00
parent c733cba2d8
commit 2dc71e7d63

@ -12,13 +12,15 @@ Citra is a brand new project, so we have a great opportunity to keep things clea
* CamelCase, "_" may also be used for clarity (e.g. ARM_InitCore)
* Variables
* lower_case_underscored
* Prefixes: "g_" if global, "__" if internal, "___" if ultra internal
* Prefix "g_" if global
* Prefix "_" if internal
* Prefix "__" if ultra internal
* Classes
* CamelCase, "__" may also be used for clarity (e.g. OGL_VideoInterface)
* CamelCase, "_" may also be used for clarity (e.g. OGL_VideoInterface)
* Files/Folders
* lower_case_underscored
* Namespaces
* CamelCase, "__" may also be used for clarity (e.g. ARM_InitCore)
* CamelCase, "_" may also be used for clarity (e.g. ARM_InitCore)
### Indentation/Whitespace Style
Follow the indentation/whitespace style shown below. Do not use tabs, use 4-spaces instead.
@ -29,6 +31,7 @@ Follow the indentation/whitespace style shown below. Do not use tabs, use 4-spac
// Declare globals at the top
int g_foo = 0;
char* g_some_pointer; // Notice the position of the *
enum SomeEnum {
COLOR_RED,