VirtualBox

Changeset 21391 in vbox for trunk/include


Ignore:
Timestamp:
Jul 8, 2009 12:39:51 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49761
Message:

IPRT: simplify r49759 (not needed)

File:
1 edited

Legend:

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

    r21390 r21391  
    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)
    522 #endif
    523 
    524 /** @def RT_THROW_BAD_ALLOC
    525  * How to express that a method or function throws a std::bad_alloc exception.
    526  */
    527 #ifdef RT_EXCEPTIONS_ENABLED
    528 # define RT_THROW_BAD_ALLOC     throw(std::bad_alloc)
    529 #else
    530 # define RT_THROW_BAD_ALLOC
    531505#endif
    532506
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