Changeset 25149 in vbox for trunk/include/VBox/com
- Timestamp:
- Dec 2, 2009 2:34:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/assert.h
r22499 r25149 110 110 if (!SUCCEEDED (rc)) { AssertComRC (rc); throw rc; } else do {} while (0) 111 111 112 /**113 * Checks whether the given COM result code is successful.114 * If not, executes the return statement with this result code.115 *116 * @param rc COM result code117 */118 #define CheckComRCReturnRC(rc) \119 if (!SUCCEEDED (rc)) { return (rc); } else do {} while (0)120 121 /**122 * Checks whether the given COM result code is successful.123 * If not, executes the break statement.124 *125 * @param rc COM result code126 */127 #define CheckComRCBreakRC(rc) \128 if (!SUCCEEDED (rc)) { break; } else do {} while (0)129 130 /**131 * Checks whether the given COM result code is successful.132 * If not, throws the given COM result.133 *134 * @param rc COM result code135 */136 #define CheckComRCThrowRC(rc) \137 if (!SUCCEEDED (rc)) { throw rc; } else do {} while (0)138 139 112 #endif // !___VBox_com_assert_h
Note:
See TracChangeset
for help on using the changeset viewer.