diff options
Diffstat (limited to 'mp/src/public/tier0/annotations.h')
| -rw-r--r-- | mp/src/public/tier0/annotations.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mp/src/public/tier0/annotations.h b/mp/src/public/tier0/annotations.h index 25537821..7e0f4698 100644 --- a/mp/src/public/tier0/annotations.h +++ b/mp/src/public/tier0/annotations.h @@ -48,6 +48,8 @@ #define OUT_Z_ARRAY _Deref_post_z_ #define INOUT_Z_ARRAY _Deref_prepost_z_ #endif // _MSC_VER >= 1700 +// Used for annotating functions to describe their return types. +#define MUST_CHECK_RETURN _Check_return_ // Use the macros above to annotate string functions that fill buffers as shown here, // in order to give VS's /analyze more opportunities to find bugs. // void V_wcsncpy( OUT_Z_BYTECAP(maxLenInBytes) wchar_t *pDest, wchar_t const *pSrc, int maxLenInBytes ); @@ -76,6 +78,7 @@ #define INOUT_Z_BYTECAP(x) #define OUT_Z_ARRAY #define INOUT_Z_ARRAY +#define MUST_CHECK_RETURN #endif #endif // ANALYSIS_ANNOTATIONS_H |