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

CFIX_ASSERT_OK

CFIX_ASSERT_OK

Synopsis

CFIX_ASSERT_OK may be used to check whether an expression yields S_OK as result. This macro is primarily intended for COM development and is a shorthand for writing CFIX_ASSERT_EQUALS_ULONG( S_OK, Expression )

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

Table 7.2. 

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