VirtualBox

Changeset 58098 in vbox for trunk


Ignore:
Timestamp:
Oct 7, 2015 2:30:31 PM (9 years ago)
Author:
vboxsync
Message:

com/assert.h: Cleanup fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/assert.h

    r58096 r58098  
    8181 */
    8282#define AssertComRCBreak(hrc, PreBreakExpr) \
    83     if (!SUCCEEDED(hrc)) { AssertMsgFailed(hrc); PreBreakExpr; break; } else do {} while (0)
     83    if (!SUCCEEDED(hrc)) { AssertComRCFailed(hrc); PreBreakExpr; break; } else do {} while (0)
    8484
    8585/**
     
    9191 */
    9292#define AssertComRCThrow(hrc, ThrowObjExpr) \
    93     do { if (SUCCEEDED(hrc)) { /*likely*/} else { AssertMsgFailed(hrc); throw (ThrowMeExpr); } } while (0)
     93    do { if (SUCCEEDED(hrc)) { /*likely*/} else { AssertComRCFailed(hrc); throw (ThrowMeExpr); } } while (0)
    9494
    9595/**
     
    100100 */
    101101#define AssertComRCBreakRC(hrc) \
    102     if (!SUCCEEDED(hrc)) { AssertMsgFailed(hrc); break; } else do {} while (0)
     102    if (!SUCCEEDED(hrc)) { AssertComRCFailed(hrc); break; } else do {} while (0)
    103103
    104104/**
     
    109109 */
    110110#define AssertComRCThrowRC(hrc) \
    111     do { if (SUCCEEDED(hrc)) { /*likely*/ } else { AssertMsgFailed(hrc); throw hrc; } } while (0)
     111    do { if (SUCCEEDED(hrc)) { /*likely*/ } else { AssertComRCFailed(hrc); throw hrc; } } while (0)
    112112
    113113#endif // !___VBox_com_assert_h
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