Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

assert.h File Reference


Detailed Description

MS COM / XPCOM Abstraction Layer: Assertion macros for COM/XPCOM

Definition in file assert.h.

#include <iprt/assert.h>

Go to the source code of this file.

Defines

#define ASSERT(expr)
#define ASSERT_BREAK(expr)   if (1) { ASSERT (expr); if (!(expr)) break; } else do {} while (0)
#define ASSERT_RET(expr, ret)   do { ASSERT (expr); if (!(expr)) return (ret); } while (0)
#define AssertComRC(rc)   do { AssertMsg (SUCCEEDED (rc), ("COM RC = 0x%08X\n", rc)); NOREF (rc); } while (0)
#define AssertComRCBreak(rc, eval)   if (1) { AssertComRC (rc); if (!SUCCEEDED (rc)) { eval; break; } } else do {} while (0)
#define AssertComRCBreakRC(rc)   if (1) { AssertComRC (rc); if (!SUCCEEDED (rc)) { break; } } else do {} while (0)
#define AssertComRCReturn(rc, ret)   AssertMsgReturn (SUCCEEDED (rc), ("COM RC = 0x%08X\n", rc), ret)
#define AssertComRCReturnRC(rc)   AssertMsgReturn (SUCCEEDED (rc), ("COM RC = 0x%08X\n", rc), rc)
#define AssertComRCReturnVoid(rc)   AssertMsgReturnVoid (SUCCEEDED (rc), ("COM RC = 0x%08X\n", rc))
#define CHECK_ERROR(iface, method)
#define CHECK_ERROR_BREAK(iface, method)   if (1) { CHECK_ERROR (iface, method); if (FAILED (rc)) break; } else do {} while (0)
#define CHECK_ERROR_NI(method)
#define CHECK_ERROR_NI_BREAK(method)   if (1) { CHECK_ERROR_NI (method); if (FAILED (rc)) break; } else do {} while (0)
#define CHECK_ERROR_NI_RET(method)   do { CHECK_ERROR_NI (method); if (FAILED (rc)) return rc; } while (0)
#define CHECK_ERROR_NOCALL()
#define CHECK_ERROR_RET(iface, method, ret)   do { CHECK_ERROR (iface, method); if (FAILED (rc)) return (ret); } while (0)
#define CHECK_RC(method)
#define CHECK_RC_BREAK(method)   if (1) { CHECK_RC (method); if (FAILED (rc)) break; } else do {} while (0)
#define CHECK_RC_RET(method)   do { CHECK_RC (method); if (FAILED (rc)) return rc; } while (0)
#define CheckComRCBreakRC(rc)   if (1) { if (!SUCCEEDED (rc)) { break; } } else do {} while (0)
#define CheckComRCReturnRC(rc)   if (1) { if (!SUCCEEDED (rc)) return (rc); } else do {} while (0)
#define PRINT_ERROR_INFO(info)
#define PRINT_RC_MESSAGE(rc)   RTPrintf ("[!] Primary RC = %Rwa\n", rc)


Generated by  Doxygen 1.6.0   Back to index