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

kRdrInternal.h File Reference


Detailed Description

kRdr - Internal Header.

Definition in file kRdrInternal.h.

#include <k/kHlpAssert.h>
#include <k/kMagics.h>
#include <k/kRdrAll.h>
#include <k/kErrors.h>

Go to the source code of this file.

Defines

#define KRDR_VALIDATE(pRdr)   KRDR_VALIDATE_EX(pRdr, KERR_INVALID_PARAMETER)
#define KRDR_VALIDATE_EX(pRdr, rc)
#define KRDR_VALIDATE_VOID(pRdr)
Our Assert macros
#define kRdrAssert(expr)   do { } while (0)
#define kRdrAssertFailed()   kRdrAssert(0)
#define kRdrAssertFailedReturn(rcRet)   kRdrAssertReturn(0, (rcRet))
#define kRdrAssertMsg(expr, msg)   do { } while (0)
#define kRdrAssertMsgFailed(msg)   kRdrAssertMsg(0, msg)
#define kRdrAssertMsgFailedReturn(msg, rcRet)   kRdrAssertMsgReturn(0, msg, (rcRet))
#define kRdrAssertMsgReturn(expr, msg, rcRet)   do { if (!(expr)) return (rcRet); } while (0)
#define kRdrAssertPtr(ptr)   kRdrAssertMsg(K_VALID_PTR(ptr), ("%s = %p\n", #ptr, (ptr)))
#define kRdrAssertPtrNull(ptr)   kRdrAssertMsg(!(ptr) || K_VALID_PTR(ptr), ("%s = %p\n", #ptr, (ptr)))
#define kRdrAssertPtrNullReturn(ptr, rcRet)   kRdrAssertMsgReturn(!(ptr) || K_VALID_PTR(ptr), ("%s = %p -> %d\n", #ptr, (ptr), (rcRet)), (rcRet))
#define kRdrAssertPtrReturn(ptr, rcRet)   kRdrAssertMsgReturn(K_VALID_PTR(ptr), ("%s = %p -> %d\n", #ptr, (ptr), (rcRet)), (rcRet))
#define kRdrAssertRC(rc)   kRdrAssertMsg((rc) == 0, ("%s = %d\n", #rc, (rc)))
#define kRdrAssertRCReturn(rc, rcRet)   kRdrAssertMsgReturn((rc) == 0, ("%s = %d -> %d\n", #rc, (rc), (rcRet)), (rcRet))
#define kRdrAssertReturn(expr, rcRet)   do { if (!(expr)) return (rcRet); } while (0)

Variables

Built-in Providers
const KRDROPS g_kRdrFileOps


Generated by  Doxygen 1.6.0   Back to index