compat: add _Verify_
This eases porting of legacy code. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
2020fa2eec
commit
441a2ae9d5
@ -197,8 +197,10 @@ size_t _countof(const T (&arr)[N])
|
||||
#endif
|
||||
#ifdef NDEBUG
|
||||
#define _Assume_(p) _Analysis_assume_(p)
|
||||
#define _Verify_(p) ((void)(p))
|
||||
#else
|
||||
#define _Assume_(p) assert(p)
|
||||
#define _Verify_(p) assert(p)
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
Loading…
x
Reference in New Issue
Block a user