WIN_ASSERT_FAIL
void WIN_ASSERT_FAIL( __in PCSTR Message, ... ); void WIN_ASSERT_FAIL( __in PCWSTR Message, ... );
[in] Message: 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.
if ( ! CheckIfFileExists( FileName ) ) { WIN_ASSERT_FAIL( "File %s does not exist aborting test", FileName ); }
Table 7.49.
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.