X-Git-Url: https://git.octo.it/?p=supertux.git;a=blobdiff_plain;f=CODINGSTYLE;h=a7fd5eeeea1ab359a92b982dd7a99a4b34ddf601;hp=5c8ff3266ef4ba1430b15add68e8778fab5f3d0a;hb=HEAD;hpb=886fc4bdb2390e53e9366841affc2dc299981b97 diff --git a/CODINGSTYLE b/CODINGSTYLE index 5c8ff3266..a7fd5eeee 100644 --- a/CODINGSTYLE +++ b/CODINGSTYLE @@ -1,6 +1,11 @@ SuperTux Coding Standards ========================= +* start member variable name with "m_", global variables with "g_" and + static variables with "s_" + +* avoid spaces at the end of lines + * proper separation between generic engine code and game specific code should be done whenever feasible @@ -45,6 +50,8 @@ SuperTux Coding Standards do not use /**< and other styles of comments +* write regular comments with //, not with /* */ + * more info on good practices can be found at: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml