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.

8 lines
283 B

  1. #ifndef __WV_MACROS_H_
  2. #define __WV_MACROS_H_
  3. #define IfFailRet(hresult) {hr = (hresult); if (FAILED(hr)) return hr;}
  4. #define IfFailGo(hresult) {hr = (hresult); if (FAILED(hr)) goto done;}
  5. #define IfFalseRet(val, hr) {if ((val) == 0) return (hr);}
  6. #endif // __WV_MACROS_H_