| | 1454 | /** @def AssertMsgRCBreak |
|---|
| | 1455 | * Asserts a iprt status code successful and if it's not break. |
|---|
| | 1456 | * |
|---|
| | 1457 | * If RT_STRICT is defined the message will be printed and a breakpoint hit before it breaks |
|---|
| | 1458 | * |
|---|
| | 1459 | * @param rc iprt status code. |
|---|
| | 1460 | * @param msg printf argument list (in parenthesis). |
|---|
| | 1461 | * @remark rc is references multiple times. In release mode is NOREF()'ed. |
|---|
| | 1462 | */ |
|---|
| | 1463 | #define AssertMsgRCBreak(rc, msg) \ |
|---|
| | 1464 | if (1) { AssertMsgBreak(RT_SUCCESS(rc), msg); NOREF(rc); } else do {} while (0) |
|---|
| | 1465 | |
|---|
| 1467 | | /** @def AssertMsgRCBreakVoid |
|---|
| 1468 | | * Asserts a iprt status code successful and if it's not break. |
|---|
| 1469 | | * |
|---|
| 1470 | | * If RT_STRICT is defined the message will be printed and a breakpoint hit before it breaks |
|---|
| 1471 | | * |
|---|
| 1472 | | * @param rc iprt status code. |
|---|
| 1473 | | * @param msg printf argument list (in parenthesis). |
|---|
| 1474 | | * @remark rc is references multiple times. In release mode is NOREF()'ed. |
|---|
| 1475 | | * @todo Rename to AssertMsgRCBreak. |
|---|
| 1476 | | */ |
|---|
| 1477 | | #define AssertMsgRCBreakVoid(rc, msg) \ |
|---|
| 1478 | | if (1) { AssertMsgBreak(RT_SUCCESS(rc), msg); NOREF(rc); } else do {} while (0) |
|---|
| 1479 | | |
|---|