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.


#define AssertComRC(rc)   do { AssertMsg (SUCCEEDED (rc), ("COM RC = %Rhrc (0x%08X)\n", rc, rc)); NOREF (rc); } while (0)
#define AssertComRCBreak(rc, eval)   if (!SUCCEEDED (rc)) { AssertComRC (rc); eval; break; } else do {} while (0)
#define AssertComRCBreakRC(rc)   if (!SUCCEEDED (rc)) { AssertComRC (rc); break; } else do {} while (0)
#define AssertComRCReturn(rc, ret)   AssertMsgReturn (SUCCEEDED (rc), ("COM RC = %Rhrc (0x%08X)\n", rc, rc), ret)
#define AssertComRCReturnRC(rc)   AssertMsgReturn (SUCCEEDED (rc), ("COM RC = %Rhrc (0x%08X)\n", rc, rc), rc)
#define AssertComRCReturnVoid(rc)   AssertMsgReturnVoid (SUCCEEDED (rc), ("COM RC = %Rhrc (0x%08X)\n", rc, rc))
#define AssertComRCThrow(rc, eval)   if (!SUCCEEDED (rc)) { AssertComRC (rc); throw (eval); } else do {} while (0)
#define AssertComRCThrowRC(rc)   if (!SUCCEEDED (rc)) { AssertComRC (rc); throw rc; } else do {} while (0)

Generated by  Doxygen 1.6.0   Back to index