- Timestamp:
- Oct 7, 2015 2:30:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/assert.h
r58096 r58098 81 81 */ 82 82 #define AssertComRCBreak(hrc, PreBreakExpr) \ 83 if (!SUCCEEDED(hrc)) { Assert MsgFailed(hrc); PreBreakExpr; break; } else do {} while (0)83 if (!SUCCEEDED(hrc)) { AssertComRCFailed(hrc); PreBreakExpr; break; } else do {} while (0) 84 84 85 85 /** … … 91 91 */ 92 92 #define AssertComRCThrow(hrc, ThrowObjExpr) \ 93 do { if (SUCCEEDED(hrc)) { /*likely*/} else { Assert MsgFailed(hrc); throw (ThrowMeExpr); } } while (0)93 do { if (SUCCEEDED(hrc)) { /*likely*/} else { AssertComRCFailed(hrc); throw (ThrowMeExpr); } } while (0) 94 94 95 95 /** … … 100 100 */ 101 101 #define AssertComRCBreakRC(hrc) \ 102 if (!SUCCEEDED(hrc)) { Assert MsgFailed(hrc); break; } else do {} while (0)102 if (!SUCCEEDED(hrc)) { AssertComRCFailed(hrc); break; } else do {} while (0) 103 103 104 104 /** … … 109 109 */ 110 110 #define AssertComRCThrowRC(hrc) \ 111 do { if (SUCCEEDED(hrc)) { /*likely*/ } else { Assert MsgFailed(hrc); throw hrc; } } while (0)111 do { if (SUCCEEDED(hrc)) { /*likely*/ } else { AssertComRCFailed(hrc); throw hrc; } } while (0) 112 112 113 113 #endif // !___VBox_com_assert_h
Note:
See TracChangeset
for help on using the changeset viewer.