Changeset 21391 in vbox for trunk/include
- Timestamp:
- Jul 8, 2009 12:39:51 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49761
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r21390 r21391 503 503 #else 504 504 # define RT_NO_THROW 505 #endif506 507 /** @def RT_THROW508 * 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 by513 * \#ifdef RT_EXCEPTIONS_ENABLED ... \#else ... \#endif so the header514 * compiles cleanly without exceptions enabled.515 *516 * @remarks Do NOT use this for the actual throwing of exceptions!517 */518 #ifdef RT_EXCEPTIONS_ENABLED519 # define RT_THROW(type) throw(type)520 #else521 # define RT_THROW(type)522 #endif523 524 /** @def RT_THROW_BAD_ALLOC525 * How to express that a method or function throws a std::bad_alloc exception.526 */527 #ifdef RT_EXCEPTIONS_ENABLED528 # define RT_THROW_BAD_ALLOC throw(std::bad_alloc)529 #else530 # define RT_THROW_BAD_ALLOC531 505 #endif 532 506
Note:
See TracChangeset
for help on using the changeset viewer.