Visual Assert – The Unit Testing Add-In for Visual C++
cfix – C/C++ Unit Testing for Win32 and NT
 
 

CFIX_ASSERT_SUCCEEDED

CFIX_ASSERT_SUCCEEDED

Synopsis

CFIX_ASSERT_SUCCEEDED may be used to check whether an expression yields a success HRESULT. This macro is primarily intended for COM development and is a shorthand for writing CFIX_ASSERT( SUCCEEDED( Expression ) )

Declaration
void CFIX_ASSERT_SUCCEEDED( __in HRESULT Expression );
				
Usage example
CFIX_ASSERT_SUCCEEDED( CoInitialize( NULL ) );
				
Requirements

Table 7.3. 

 User ModeKernel Mode
Available since1.4Not supported
HeaderDeclared in cfix.hNot supported
LibraryLink to cfix.libNot supported
DLLcfix.dllNot supported