VirtualBox

Changeset 71705 in vbox


Ignore:
Timestamp:
Apr 6, 2018 1:26:06 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121803
Message:

VBox-CodingGuidelines.cpp: wrote down unwritten #ifdef rule wrt to single and multiple functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/doc/VBox-CodingGuidelines.cpp

    r71702 r71705  
    133133 *        \#endif indicates what ended.  Only add these when there are more than
    134134 *        a few lines (6-10) of \#ifdef'ed code, otherwise they're just clutter.
     135 *
     136 *   <li> \#ifdefs around a single function shall be tight, i.e. no empty
     137 *        lines between it and the function documentation and body.
     138 *
     139 *   <li> \#ifdefs around more than one function shall be relaxed, i.e. leave at
     140 *        least one line before the first function's documentation comment and
     141 *        one line after the end of the last function.
    135142 *
    136143 *   <li> No 'else' after if block ending with 'return', 'break', or 'continue'.
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette