mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-22 16:50:06 +00:00
Updated Coding Style (markdown)
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)
|
* CamelCase, "_" may also be used for clarity (e.g. ARM_InitCore)
|
||||||
* Variables
|
* Variables
|
||||||
* lower_case_underscored
|
* lower_case_underscored
|
||||||
* Prefixes: "g_" if global, "__" if internal, "___" if ultra internal
|
* Prefix "g_" if global
|
||||||
|
* Prefix "_" if internal
|
||||||
|
* Prefix "__" if ultra internal
|
||||||
* Classes
|
* 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
|
* Files/Folders
|
||||||
* lower_case_underscored
|
* lower_case_underscored
|
||||||
* Namespaces
|
* 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
|
### Indentation/Whitespace Style
|
||||||
Follow the indentation/whitespace style shown below. Do not use tabs, use 4-spaces instead.
|
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
|
// Declare globals at the top
|
||||||
int g_foo = 0;
|
int g_foo = 0;
|
||||||
|
char* g_some_pointer; // Notice the position of the *
|
||||||
|
|
||||||
enum SomeEnum {
|
enum SomeEnum {
|
||||||
COLOR_RED,
|
COLOR_RED,
|
||||||
|
Loading…
Reference in New Issue
Block a user