Created
December 15, 2012 14:56
-
-
Save ElemarJR/4295935 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // 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