diff options
| author | karlf <[email protected]> | 2016-08-11 13:28:13 -0700 |
|---|---|---|
| committer | karlf <[email protected]> | 2016-08-11 13:28:13 -0700 |
| commit | 96eb96dfb613e4c745db6bd1f53a92fe7e2290fc (patch) | |
| tree | ad5f3ede5cbcd6b598677ce41bcf8318471bdd92 /AVStream/avscamera/common/Macros.h | |
| parent | 687b274aa38fd05c8c26e3068932121876d7f745 (diff) | |
Updated for "Windows 10 Anniversary Update" (Version 1607)
Diffstat (limited to 'AVStream/avscamera/common/Macros.h')
| -rw-r--r-- | AVStream/avscamera/common/Macros.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/AVStream/avscamera/common/Macros.h b/AVStream/avscamera/common/Macros.h new file mode 100644 index 00000000..b87aa436 --- /dev/null +++ b/AVStream/avscamera/common/Macros.h @@ -0,0 +1,48 @@ +/************************************************************************** + + A/V Stream Camera Sample + + Copyright (c) 2014, Microsoft Corporation. + + File: + + macros.h + + Abstract: + + This file contains common error checking macros for the MFT0 + + History: + + created 10/10/2014 + +**************************************************************************/ + +#pragma once + +#define IFFAILED_BREAK(exp) \ +{ \ + if ( FAILED(hr= (exp)) ) \ + { \ + break; \ + } \ +} + +#define IFFALSE_BREAK_HR(exp, retval) \ +{ \ + if ( !(exp)) \ + { \ + hr = retval; \ + break; \ + } \ +} + + +#define IFNULL_BREAK_HR(exp, retval) \ +{ \ + if ( (exp) == NULL ) \ + { \ + hr = retval; \ + break; \ + } \ +}
\ No newline at end of file |
