VirtualBox

Changeset 71608 in vbox


Ignore:
Timestamp:
Apr 1, 2018 11:40:19 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121635
Message:

Introducing VBox/AssertGuest.h and a family of ASSERT_GUEST_XXXX macros that parallels iprt/assert.h. bugref:9094 [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/AssertGuest.h

    r71606 r71608  
    591591#endif
    592592
    593 /** @def ASSERT_GUEST_FAILEDStmt
     593/** @def ASSERT_GUEST_FAILED_STMT
    594594 * An assertion failed, hit breakpoint and execute statement.
    595595 */
     
    747747#endif
    748748
    749 /** @def ASSERT_GUEST_MSG_FAILEDReturn
     749/** @def ASSERT_GUEST_MSG_FAILED_RETURN
    750750 * An assertion failed, hit breakpoint with message (VBOX_STRICT_GUEST mode only) and return.
    751751 *
     
    889889    } while (0)
    890890
    891 /** @def ASSERT_GUEST_LOGRELReturn
     891/** @def ASSERT_GUEST_LOGREL_RETURN
    892892 * Assert that an expression is true, return \a a_rc if it isn't.
    893893 * Strict builds will hit a breakpoint, non-strict will only do LogRel.
     
    13681368#define ASSERT_GUEST_RC_STMT_RETURN_VOID(rc, stmt)  ASSERT_GUEST_MSG_RC_STMT_RETURN_VOID(rc, ("%Rra\n", (rc)), stmt)
    13691369
    1370 /** @def ASSERT_GUEST_RCBreak
     1370/** @def ASSERT_GUEST_RC_BREAK
    13711371 * Asserts a iprt status code successful, bitch (RT_STRICT mode only) and break if it isn't.
    13721372 *
     
    13971397    do { ASSERT_GUEST_MSG(RT_SUCCESS_NP(rc), msg); NOREF(rc); } while (0)
    13981398
    1399 /** @def ASSERT_GUEST_MSG_RCStmt
     1399/** @def ASSERT_GUEST_MSG_RC_STMT
    14001400 * Asserts a iprt status code successful, bitch (RT_STRICT mode only) and
    14011401 * execute @a stmt if it isn't.
     
    15171517#define ASSERT_GUEST_RC_SUCCESS_BREAK(rc)            ASSERT_GUEST_MSG_BREAK((rc) == VINF_SUCCESS, ("%Rra\n", (rc)))
    15181518
    1519 /** @def ASSERT_GUEST_RC_SUCCESSBreakStmt
     1519/** @def ASSERT_GUEST_RC_SUCCESS_STMT_BREAK
    15201520 * Asserts that an iprt status code equals VINF_SUCCESS, bitch (RT_STRICT mode only) and break if it isn't.
    15211521 *
     
    15941594#define ASSERT_GUEST_LOGREL_RC_STMT_RETURN_VOID(rc, stmt)  ASSERT_GUEST_LOGREL_MSG_RC_STMT_RETURN_VOID(rc, ("%Rra\n", (rc)), stmt)
    15951595
    1596 /** @def ASSERT_GUEST_LOGREL_RCBreak
     1596/** @def ASSERT_GUEST_LOGREL_RC_BREAK
    15971597 * Asserts a iprt status code successful, bitch (RT_STRICT mode only) and break if it isn't.
    15981598 *
     
    16231623    do { ASSERT_GUEST_LOGREL_MSG(RT_SUCCESS_NP(rc), msg); NOREF(rc); } while (0)
    16241624
    1625 /** @def ASSERT_GUEST_LOGREL_MSG_RCStmt
     1625/** @def ASSERT_GUEST_LOGREL_MSG_RC_STMT
    16261626 * Asserts a iprt status code successful, bitch (RT_STRICT mode only) and
    16271627 * execute @a stmt if it isn't.
     
    17431743#define ASSERT_GUEST_LOGREL_RC_SUCCESS_BREAK(rc)            ASSERT_GUEST_LOGREL_MSG_BREAK((rc) == VINF_SUCCESS, ("%Rra\n", (rc)))
    17441744
    1745 /** @def ASSERT_GUEST_LOGREL_RC_SUCCESSBreakStmt
     1745/** @def ASSERT_GUEST_LOGREL_RC_SUCCESS_STMT_BREAK
    17461746 * Asserts that an iprt status code equals VINF_SUCCESS, bitch (RT_STRICT mode only) and break if it isn't.
    17471747 *
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