VirtualBox

Changeset 62912 in vbox for trunk/doc


Ignore:
Timestamp:
Aug 3, 2016 12:38:04 PM (8 years ago)
Author:
vboxsync
Message:

VBox-CodingGuidelines.cpp: Clarifications.

File:
1 edited

Legend:

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

    r62705 r62912  
    4444 *      - Use static wherever possible. This makes the namespace less polluted
    4545 *        and avoids nasty name clash problems which can occur, especially on
    46  *        Unix-like systems. (1)
     46 *        Unix-like systems. (1)  It also simplifies locating callers when
     47 *        changing it (single source file vs entire VBox tree).
    4748 *
    4849 *      - Public names are of the form Domain[Subdomain[]]Method, using mixed
     
    482483 *      - The 'g_' (or 'g') prefix means a global variable, either on file or module level.
    483484 *
    484  *      - The 's_' (or 's') prefix means a static variable inside a function or class.
     485 *      - The 's_' (or 's') prefix means a static variable inside a function or
     486 *        class.  This is not used for static variables on file level, use 'g_'
     487 *        for those (logical, right).
    485488 *
    486489 *      - The 'm_' (or 'm') prefix means a class data member.
Note: See TracChangeset for help on using the changeset viewer.

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