Leaked source code of windows server 2003
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

  1. // Common macro definitions
  2. #ifdef _DEBUG
  3. #define VERIFY( t ) _ASSERT( (t) )
  4. #else
  5. #define VERIFY( t ) (t)
  6. #endif
  7. #define ARRAY_SIZE( t ) ( sizeof( t ) / sizeof( t[ 0 ] ) )
  8. // COM Macros
  9. #define DECLARE_HR_SUCCESS HRESULT hr = S_OK;
  10. #define IF_SUCCEEDED( t ) if ( SUCCEEDED( hr ) ){ hr = (t); }
  11. #define HR_CHECK( t ) if ( SUCCEEDED( hr ) && !(t) ) hr = E_FAIL