VirtualBox

Changeset 63247 in vbox for trunk


Ignore:
Timestamp:
Aug 10, 2016 10:56:20 AM (8 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Clarification of RTDECL*() and the general XXXX_DECL* macro scheme we use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r62901 r63247  
    14021402/** @def IN_RT_STATIC
    14031403 * Used to indicate whether we're linking against a static IPRT
    1404  * or not. The IPRT symbols will be declared as hidden (if
    1405  * supported). Note that this define has no effect without setting
    1406  * IN_RT_R0, IN_RT_R3 or IN_RT_RC indicators are set first.
     1404 * or not.
     1405 *
     1406 * The IPRT symbols will be declared as hidden (if supported).  Note that this
     1407 * define has no effect without also setting one of the IN_RT_R0, IN_RT_R3 or
     1408 * IN_RT_RC indicators.
    14071409 */
    14081410
    14091411/** @def IN_RT_R0
    1410  * Used to indicate whether we're inside the same link module as
    1411  * the HC Ring-0 Runtime Library.
     1412 * Used to indicate whether we're inside the same link module as the host
     1413 * context ring-0 Runtime Library.
    14121414 */
    14131415/** @def RTR0DECL(type)
    1414  * Runtime Library HC Ring-0 export or import declaration.
     1416 * Runtime Library host context ring-0 export or import declaration.
    14151417 * @param   type    The return type of the function declaration.
     1418 * @remarks This is only used inside IPRT.  Other APIs need to define their own
     1419 *          XXXX_DECL macros for dealing with import/export/static visibility.
    14161420 */
    14171421#ifdef IN_RT_R0
     
    14261430
    14271431/** @def IN_RT_R3
    1428  * Used to indicate whether we're inside the same link module as
    1429  * the HC Ring-3 Runtime Library.
     1432 * Used to indicate whether we're inside the same link module as the host
     1433 * context ring-3 Runtime Library.
    14301434 */
    14311435/** @def RTR3DECL(type)
    1432  * Runtime Library HC Ring-3 export or import declaration.
     1436 * Runtime Library host context ring-3 export or import declaration.
    14331437 * @param   type    The return type of the function declaration.
     1438 * @remarks This is only used inside IPRT.  Other APIs need to define their own
     1439 *          XXXX_DECL macros for dealing with import/export/static visibility.
    14341440 */
    14351441#ifdef IN_RT_R3
     
    14501456 * Runtime Library raw-mode context export or import declaration.
    14511457 * @param   type    The return type of the function declaration.
     1458 * @remarks This is only used inside IPRT.  Other APIs need to define their own
     1459 *          XXXX_DECL macros for dealing with import/export/static visibility.
    14521460 */
    14531461#ifdef IN_RT_RC
     
    14651473 * Functions declared using this macro exists in all contexts.
    14661474 * @param   type    The return type of the function declaration.
     1475 * @remarks This is only used inside IPRT.  Other APIs need to define their own
     1476 *          XXXX_DECL macros for dealing with import/export/static visibility.
    14671477 */
    14681478#if defined(IN_RT_R3) || defined(IN_RT_RC) || defined(IN_RT_R0)
     
    14801490 * Data declared using this macro exists in all contexts.
    14811491 * @param   type    The data type.
     1492 * @remarks This is only used inside IPRT.  Other APIs need to define their own
     1493 *          XXXX_DECL macros for dealing with import/export/static visibility.
    14821494 */
    14831495/** @def RT_DECL_DATA_CONST(type)
    14841496 * Definition of a const variable. See DECL_HIDDEN_CONST.
    14851497 * @param   type    The const data type.
     1498 * @remarks This is only used inside IPRT.  Other APIs need to define their own
     1499 *          XXXX_DECL macros for dealing with import/export/static visibility.
    14861500 */
    14871501#if defined(IN_RT_R3) || defined(IN_RT_RC) || defined(IN_RT_R0)
     
    15041518/** @def RT_DECL_CLASS
    15051519 * Declares an class living in the runtime.
     1520 * @remarks This is only used inside IPRT.  Other APIs need to define their own
     1521 *          XXXX_DECL macros for dealing with import/export/static visibility.
    15061522 */
    15071523#if defined(IN_RT_R3) || defined(IN_RT_RC) || defined(IN_RT_R0)
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