diff options
Diffstat (limited to '')
-rw-r--r-- | src/lanesconf.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/lanesconf.h b/src/lanesconf.h index fb4a601..8c66bd1 100644 --- a/src/lanesconf.h +++ b/src/lanesconf.h | |||
@@ -2,6 +2,32 @@ | |||
2 | 2 | ||
3 | #include "platform.h" | 3 | #include "platform.h" |
4 | 4 | ||
5 | // here is a place that's as good as any other to list a few coding conventions that I will endeavour to follow: | ||
6 | // | ||
7 | // indentation: | ||
8 | // ------------ | ||
9 | // spaces everywhere | ||
10 | // case indented inside switch braces | ||
11 | // accessibility keywords indented inside class braces | ||
12 | // matching braces have the same indentation | ||
13 | // | ||
14 | // identifiers: | ||
15 | // ------------ | ||
16 | // style is camel case. scope of variable is optionally specified with a single lowercase letter. | ||
17 | // constants: prefix k, followed by an uppercase letter | ||
18 | // program-level global variable: in 'global' namespace, prefix g, followed by an uppercase letter | ||
19 | // file-level static variable: in 'global' namespace, prefix s, followed by an uppercase letter | ||
20 | // file-level function (static or not): no prefix, start with an uppercase letter | ||
21 | // class/struct/enum type: no prefix, start with an uppercase letter | ||
22 | // static class member: prefix s, followed by an uppercase letter | ||
23 | // regular class member: no prefix, start with a lowercase letter | ||
24 | // static class method: no prefix, start with an uppercase letter | ||
25 | // regular class method: no prefix, start with a lowercase letter | ||
26 | // function argument: suffix _ | ||
27 | // static function variable: prefix s, followed by an uppercase letter | ||
28 | // function local variable: prefix l, followed by an uppercase letter | ||
29 | // named lambda capture: no prefix, start with a lowercase letter | ||
30 | |||
5 | #if (defined PLATFORM_WIN32) || (defined PLATFORM_POCKETPC) | 31 | #if (defined PLATFORM_WIN32) || (defined PLATFORM_POCKETPC) |
6 | #ifdef __cplusplus | 32 | #ifdef __cplusplus |
7 | #define LANES_API extern "C" __declspec(dllexport) | 33 | #define LANES_API extern "C" __declspec(dllexport) |