Changeset 32671 in vbox for trunk/include/iprt/assert.h
- Timestamp:
- Sep 21, 2010 4:24:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/assert.h
r30253 r32671 1940 1940 #define AssertRCReturnVoid(rc) AssertMsgRCReturnVoid(rc, ("%Rra\n", (rc))) 1941 1941 1942 /** @def AssertReturnVoidStmt 1943 * Asserts a iprt status code successful, bitch (RT_STRICT mode only), and 1944 * execute the given statement/return if it isn't. 1945 * 1946 * @param rc iprt status code. 1947 * @param stmt Statement to execute before returning on failure. 1948 * @remark rc is referenced multiple times. In release mode is NOREF()'ed. 1949 */ 1950 #define AssertRCReturnVoidStmt(rc, stmt) AssertMsgRCReturnVoidStmt(rc, ("%Rra\n", (rc)), stmt) 1951 1942 1952 /** @def AssertRCBreak 1943 1953 * Asserts a iprt status code successful, bitch (RT_STRICT mode only) and break if it isn't. … … 1994 2004 do { AssertMsgReturnVoid(RT_SUCCESS_NP(rc), msg); NOREF(rc); } while (0) 1995 2005 2006 /** @def AssertMsgRCReturnVoidStmt 2007 * Asserts a iprt status code successful and execute statement/break if it's not. 2008 * 2009 * If RT_STRICT is defined the message will be printed and a breakpoint hit before it returns 2010 * 2011 * @param rc iprt status code. 2012 * @param msg printf argument list (in parenthesis). 2013 * @param stmt Statement to execute before break in case of a failed assertion. 2014 * @remark rc is referenced multiple times. In release mode is NOREF()'ed. 2015 */ 2016 #define AssertMsgRCReturnVoidStmt(rc, msg, stmt) \ 2017 do { AssertMsgReturnVoidStmt(RT_SUCCESS_NP(rc), msg, stmt); NOREF(rc); } while (0) 2018 1996 2019 /** @def AssertMsgRCBreak 1997 2020 * Asserts a iprt status code successful and if it's not break. … … 2007 2030 2008 2031 /** @def AssertMsgRCBreakStmt 2009 * Asserts a iprt status code successful and break if it's not.2032 * Asserts a iprt status code successful and execute statement/break if it's not. 2010 2033 * 2011 2034 * If RT_STRICT is defined the message will be printed and a breakpoint hit before it returns
Note:
See TracChangeset
for help on using the changeset viewer.