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

#define RTTESTI_CHECK_RET (   expr,
  rcRet 
)
Value:
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.

Parameters:
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