You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
387 B
16 lines
387 B
// Common macro definitions
|
|
|
|
#ifdef _DEBUG
|
|
#define VERIFY( t ) _ASSERT( (t) )
|
|
#else
|
|
#define VERIFY( t ) (t)
|
|
#endif
|
|
|
|
|
|
#define ARRAY_SIZE( t ) ( sizeof( t ) / sizeof( t[ 0 ] ) )
|
|
|
|
|
|
// COM Macros
|
|
#define DECLARE_HR_SUCCESS HRESULT hr = S_OK;
|
|
#define IF_SUCCEEDED( t ) if ( SUCCEEDED( hr ) ){ hr = (t); }
|
|
#define HR_CHECK( t ) if ( SUCCEEDED( hr ) && !(t) ) hr = E_FAIL
|