Author: matt
Date: 2010-02-26 13:23:17 -0800 (Fri, 26 Feb 2010)
New Revision: 553
Log:
Added FALLTHROUGH comment to coding styles.

Modified:
   trunk/cmp.php

Modified: trunk/cmp.php
===================================================================
--- trunk/cmp.php       2009-12-27 18:52:22 UTC (rev 552)
+++ trunk/cmp.php       2010-02-26 21:23:17 UTC (rev 553)
@@ -1086,6 +1086,14 @@
 constants are prohibited aside from the include guard
 definitions.
 
+<h2>Miscellaneous</h2>
+
+When using <tt>switch</tt> - <tt>case</tt> statements, and your
+<tt>case</tt> statement does not end in <tt>break</tt> in order to 
+fall through to next <tt>case</tt> statement, the comment
+<tt>/* FALLTHROUGH */</tt> should be added where the <tt>break</tt>
+statement would be.
+
 <h1><a name="MAKEFILES">Makefile Standards</a></h1>
 
 <p>The following is a guide to the makefile-based build system

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to