Skip to content

Instantly share code, notes, and snippets.

@ElemarJR
Created December 15, 2012 14:56
Show Gist options
  • Select an option

  • Save ElemarJR/4295935 to your computer and use it in GitHub Desktop.

Select an option

Save ElemarJR/4295935 to your computer and use it in GitHub Desktop.
//
// Generic test for success on any status value (non-negative numbers
// indicate success).
//
#define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0)
//
// and the inverse
//
#define FAILED(hr) (((HRESULT)(hr)) < 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment