summaryrefslogtreecommitdiff
path: root/PcsxSrc/Docs/CodingStyle.txt
diff options
context:
space:
mode:
Diffstat (limited to 'PcsxSrc/Docs/CodingStyle.txt')
-rw-r--r--PcsxSrc/Docs/CodingStyle.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/PcsxSrc/Docs/CodingStyle.txt b/PcsxSrc/Docs/CodingStyle.txt
new file mode 100644
index 0000000..4b44c97
--- /dev/null
+++ b/PcsxSrc/Docs/CodingStyle.txt
@@ -0,0 +1,29 @@
+## PCSX CODING STYLE
+
+typedef struct { // { within struct
+ int i;
+} name;
+
+void func(int i) { // { within func declaration
+ if () { // same
+ switch () { // same
+ default:
+ printf(); // 1 tab per level (considering the default and the code in it
+ // as diferent ones
+ }
+ }
+
+ for (;;) { // same for while
+ }
+}
+
+Also try to align the code:
+ Something = x;
+ AnotherThing = x;
+but not always:
+ i = x;
+ Something = x;
+
+tab = 4
+indent = 4
+