diff --git a/Coding-Style.md b/Coding-Style.md index eb14347..6f8214f 100644 --- a/Coding-Style.md +++ b/Coding-Style.md @@ -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,