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

#define AssertForEach ( var,
vartype,
first,
end,
expr   ) 

Value:

do { \
        vartype var; \
        Assert((first) == (first) && (end) == (end)); /* partial check for side effects */ \
        for (var = (first); var < (end); var++) \
            AssertMsg(expr, ("%s = %#RX64 (%RI64)", #var, (uint64_t)var, (int64_t)var)); \
    } while (0)
Equivalent to Assert for each value of the variable from the starting value to the finishing one.

Parameters:
var Name of the counter variable.
vartype Type of the counter variable.
first Lowest inclusive value of the counter variable. This must be free from side effects.
end Highest exclusive value of the counter variable. This must be free from side effects.
expr Expression which should be true for each value of var.

Definition at line 2427 of file assert.h.


Generated by  Doxygen 1.6.0   Back to index