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

#define RTTESTI_CHECK_RET (   expr,
do { if (!(expr)) { \
            RTTestIFailed("line %u: %s", __LINE__, #expr); \
            return (rcRet); \
         } \
    } while (0)

Check whether a boolean expression holds true, returns on false.

If the expression is false, call RTTestIFailed giving the line number and expression.

exprThe expression to evaluate.
rcRetWhat to return on failure.

Definition at line 942 of file test.h.

Referenced by tstOpenInterfaces().

Generated by  Doxygen 1.6.0   Back to index