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

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

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

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

Parameters:
exprThe expression to evaluate.

Definition at line 956 of file test.h.

Referenced by tst1(), tst3(), and TstRTStrPurgeEncoding().


Generated by  Doxygen 1.6.0   Back to index