VirtualBox

Changeset 21392 in vbox for trunk/include


Ignore:
Timestamp:
Jul 8, 2009 12:52:26 PM (15 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Restored RT_THROW.

File:
1 edited

Legend:

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

    r21391 r21392  
    503503#else
    504504# define RT_NO_THROW
     505#endif
     506
     507/** @def RT_THROW
     508 * How to express that a method or function throws a type of exceptions.
     509 *
     510 * @param   type    The type exception.
     511 *
     512 * @remarks If the actual throwing is done from the header, enclose it by
     513 *          \#ifdef RT_EXCEPTIONS_ENABLED ... \#else ... \#endif so the header
     514 *          compiles cleanly without exceptions enabled.
     515 *
     516 * @remarks Do NOT use this for the actual throwing of exceptions!
     517 */
     518#ifdef RT_EXCEPTIONS_ENABLED
     519# define RT_THROW(type)         throw(type)
     520#else
     521# define RT_THROW(type)
    505522#endif
    506523
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