Changeset 20928 in vbox for trunk/include
- Timestamp:
- Jun 25, 2009 11:53:37 AM (16 years ago)
- Location:
- trunk/include/VBox/com
- Files:
-
- 1 deleted
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/errorprint.h
r20914 r20928 117 117 #endif 118 118 119 /** 120 * Does the same as ASSERT(), but executes the |return ret| statement if the 121 * expression to assert is false; 122 */ 123 #define ASSERT_RET(expr, ret) \ 124 do { ASSERT(expr); if (!(expr)) return (ret); } while (0) 125 126 /** 127 * Does the same as ASSERT(), but executes the |break| statement if the 128 * expression to assert is false; 129 */ 130 #define ASSERT_BREAK(expr, ret) \ 131 if (1) { ASSERT(expr); if (!(expr)) break; } else do {} while (0) 132 119 133 } /* namespace com */
Note:
See TracChangeset
for help on using the changeset viewer.