Changeset 85092 in vbox
- Timestamp:
- Jul 7, 2020 6:22:33 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/include/iprt/cdefs.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r85086 r85092 1374 1374 #endif 1375 1375 1376 /** @def DECL_HIDDEN_NOTHROW 1377 * How to declare a non-exported function that does not throw C++ exceptions. 1378 * @param type The return type of the function or the data type of the variable. 1379 */ 1380 #define DECL_HIDDEN_NOTHROW(a_Type) DECL_NOTHROW(DECLHIDDEN(a_Type)) 1381 1376 1382 /** @def DECL_INVALID 1377 1383 * How to declare a function not available for linking in the current context. … … 1403 1409 * @param type The return type of the function. 1404 1410 */ 1405 #define DECLASMTYPE(type) DECL_NOTHROW (type RTCALL)1411 #define DECLASMTYPE(type) DECL_NOTHROW_TYPEDEF(type RTCALL) 1406 1412 1407 1413 /** @def RT_ASM_DECL_PRAGMA_WATCOM … … 1583 1589 1584 1590 /** @def DECL_FORCE_INLINE 1585 * How to declare a function as inline and try convince the compiler to always 1586 * inline it regardless of optimization switches. 1591 * How to declare a function that does not throw any C++ exceptions as inline 1592 * and try convince the compiler to always inline it regardless of optimization 1593 * switches. 1587 1594 * @param type The return type of the function declaration. 1588 1595 * @remarks Use sparsely and with care. Don't use this macro on C++ methods. 1596 * @sa DECL_FORCE_INLINE_THROW 1589 1597 */ 1590 1598 #ifdef __GNUC__ 1591 1599 # define DECL_FORCE_INLINE(type) __attribute__((__always_inline__)) DECLINLINE(type) 1592 1600 #elif defined(_MSC_VER) 1593 # define DECL_FORCE_INLINE(type) __forceinline type1601 # define DECL_FORCE_INLINE(type) DECL_NOTHROW(__forceinline type) 1594 1602 #else 1595 1603 # define DECL_FORCE_INLINE(type) DECLINLINE(type) 1604 #endif 1605 1606 /** @def DECL_FORCE_INLINE_THROW 1607 * How to declare a function throwing C++ exceptions as inline and try convince 1608 * the compiler to always inline it regardless of optimization switches. 1609 * @param type The return type of the function declaration. 1610 * @remarks Use sparsely and with care. Don't use this macro on C++ methods. 1611 */ 1612 #ifdef __GNUC__ 1613 # define DECL_FORCE_INLINE_THROW(type) __attribute__((__always_inline__)) DECL_INLINE_THROW(type) 1614 #elif defined(_MSC_VER) 1615 # define DECL_FORCE_INLINE_THROW(type) __forceinline type 1616 #else 1617 # define DECL_FORCE_INLINE_THROW(type) DECL_INLINE_THROW(type) 1596 1618 #endif 1597 1619
Note:
See TracChangeset
for help on using the changeset viewer.

