WIN_ASSERT_NOT_ZERO
void WIN_ASSERT_NOT_ZERO( __in T Expression, ... );
T may be any signed or unsigned integer type.
[in] Expression: The expression whose value is to be checked.
[in] ...: Optional: Message to be included in a failure report. This parameter allows printf-style formatters to be used, with the corresponding parameters being specified as subsequent arguments. The routine is overloaded and allows Message to be either a unicode or an ANSI string.
int Foo = -1; ... WIN_ASSERT_NOT_ZERO( 0, Foo ); WIN_ASSERT_NOT_ZERO( 0, Foo, "Foo should never be %s, "zero" );
Table 7.46.
User Mode | Kernel Mode | |
---|---|---|
Available since | 1.3 | N/A |
Header | Declared in winunit.h | N/A |
Library | Link to cfix.lib | N/A |
DLL | cfix.dll | N/A |
IRQL | N/A | N/A |
Requires cl version 14.00 (VisualStudio 2005) or better.