- Timestamp:
- Jul 30, 2021 10:16:10 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/include/iprt/cdefs.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r90168 r90444 1128 1128 * @note This macro can be combined with other macros, for example 1129 1129 * @code 1130 * EMR3DECL(DECL_NOTHROW(void)) foo(void);1130 * RTR3DECL(DECL_NOTHROW(void)) foo(void); 1131 1131 * @endcode 1132 1132 * … … 1498 1498 * @note This macro can be combined with other macros, for example 1499 1499 * @code 1500 * EMR3DECL(DECL_NO_RETURN(void)) foo(void);1500 * RTR3DECL(DECL_NO_RETURN(void)) foo(void); 1501 1501 * @endcode 1502 1502 */ … … 1513 1513 * @note This macro can be combined with other macros, for example 1514 1514 * @code 1515 * EMR3DECL(DECL_RETURNS_TWICE(void)) MySetJmp(void);1515 * RTR3DECL(DECL_RETURNS_TWICE(void)) MySetJmp(void); 1516 1516 * @endcode 1517 1517 */ 1518 1518 #if RT_GNUC_PREREQ(4, 1) 1519 1519 # define DECL_RETURNS_TWICE(a_RetType) __attribute__((returns_twice)) a_RetType 1520 # else1520 #else 1521 1521 # define DECL_RETURNS_TWICE(a_RetType) a_RetType 1522 #endif 1523 1524 /** @def DECL_CHECK_RETURN 1525 * Require a return value to be checked. 1526 * @note This macro can be combined with other macros, for example 1527 * @code 1528 * RTR3DECL(DECL_CHECK_RETURN(int)) MayReturnInfoStatus(void); 1529 * @endcode 1530 * @todo Visual C++: check _Check_return_ from SAL. 1531 */ 1532 #if RT_GNUC_PREREQ(3, 4) 1533 # define DECL_CHECK_RETURN(a_RetType) __attribute__((warn_unused_result)) a_RetType 1534 #else 1535 # define DECL_CHECK_RETURN(a_RetType) a_RetType 1536 #endif 1537 1538 /** @def DECL_CHECK_RETURN_NOT_R3 1539 * Variation of DECL_CHECK_RETURN that only applies the required to non-ring-3 1540 * code. 1541 */ 1542 #ifndef IN_RING3 1543 # define DECL_CHECK_RETURN_NOT_R3(a_RetType) DECL_CHECK_RETURN(a_RetType) 1544 #else 1545 # define DECL_CHECK_RETURN_NOT_R3(a_RetType) a_RetType 1522 1546 #endif 1523 1547 … … 1527 1551 * @note This macro can be combined with other macros, for example 1528 1552 * @code 1529 * EMR3DECL(DECLWEAK(int)) foo;1553 * RTR3DECL(DECLWEAK(int)) foo; 1530 1554 * @endcode 1531 1555 */
Note:
See TracChangeset
for help on using the changeset viewer.

