From 2dc71e7d637f7330b2e9f0bcb634a2b32247bb36 Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 20 May 2014 06:54:01 -0700 Subject: [PATCH] Updated Coding Style (markdown) --- Coding-Style.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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,