VirtualBox

Changeset 8584 in vbox for trunk


Ignore:
Timestamp:
May 5, 2008 2:01:49 PM (17 years ago)
Author:
vboxsync
Message:

AssertReleaseMsgBreakVoid -> AssertReleaseMsgBreak.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/assert.h

    r8583 r8584  
    11541154
    11551155
     1156/** @def AssertReleaseMsgBreak
     1157 * Assert that an expression is true, print the message and hit a breakpoint and break if it isn't.
     1158 *
     1159 * @param   expr    Expression which should be true.
     1160 * @param   a       printf argument list (in parenthesis).
     1161 */
     1162#define AssertReleaseMsgBreak(expr, a)  \
     1163    if (RT_UNLIKELY(!(expr))) \
     1164    { \
     1165        AssertMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \
     1166        AssertMsg2 a; \
     1167        AssertReleaseBreakpoint(); \
     1168        break; \
     1169    } else do {} while (0)
     1170
    11561171/** @def AssertReleaseMsgBreakStmt
    11571172 * Assert that an expression is true, print the message and hit a breakpoing and break if it isn't.
     
    11701185    } else do {} while (0)
    11711186
    1172 /** @def AssertReleaseMsgBreakVoid
    1173  * Assert that an expression is true, print the message and hit a breakpoint and break if it isn't.
    1174  *
    1175  * @param   expr    Expression which should be true.
    1176  * @param   a       printf argument list (in parenthesis).
    1177  * @todo Rename to AssertReleaseMsgBreak.
    1178  */
    1179 #define AssertReleaseMsgBreakVoid(expr, a)  \
    1180     if (RT_UNLIKELY(!(expr))) \
    1181     { \
    1182         AssertMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \
    1183         AssertMsg2 a; \
    1184         AssertReleaseBreakpoint(); \
    1185         break; \
    1186     } else do {} while (0)
    1187 
    11881187
    11891188/** @def AssertReleaseFailed
     
    17791778 * @todo Rename to AssertReleaseMsgRCBreak.
    17801779 */
    1781 #define AssertReleaseMsgRCBreakVoid(rc, msg)    AssertReleaseMsgBreakVoid(RT_SUCCESS(rc), msg)
     1780#define AssertReleaseMsgRCBreakVoid(rc, msg)    AssertReleaseMsgBreak(RT_SUCCESS(rc), msg)
    17821781
    17831782/** @def AssertReleaseRCSuccess
     
    18361835 * @todo Rename to AssertReleaseRCSuccessBreak.
    18371836 */
    1838 #define AssertReleaseRCSuccessBreakVoid(rc)     AssertReleaseMsgBreakVoid((rc) == VINF_SUCCESS, ("%Vra\n", (rc)))
     1837#define AssertReleaseRCSuccessBreakVoid(rc)     AssertReleaseMsgBreak((rc) == VINF_SUCCESS, ("%Vra\n", (rc)))
    18391838
    18401839
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