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

errorprint_legacy.h File Reference


Detailed Description

MS COM / XPCOM Abstraction Layer: Legacy error printing macros for COM/XPCOM (used with testcases).

NOTE: to lighten the load on the compilers, please use the shared functions in errorprint2.h for new code.

Definition in file errorprint_legacy.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 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 PRINT_ERROR_INFO(info)
#define PRINT_RC_MESSAGE(rc)


Generated by  Doxygen 1.6.0   Back to index