WIN_ASSERT_TRUE
WIN_ASSERT_TRUE checks whether a given expression evaluates to TRUE. It is analagous to CFIX_ASSERT.
WIN_ASSERT_WINAPI_SUCCESS is an alias for WIN_ASSERT_TRUE.
void WIN_ASSERT_TRUE( __in BOOL Expression, ... ); void WIN_ASSERT_WINAPI_SUCCESS( __in BOOL Expression, ... );
[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 a = 0; WIN_ASSERT_TRUE( TRUE, "Test a Win32 BOOL" ); WIN_ASSERT_TRUE( true, L"Test a C++ bool" ); WIN_ASSERT_TRUE( a == 0 );
Table 7.50.
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.