mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Changed GSL.assert macros to functions
This commit is contained in:
parent
62226021a8
commit
901a6b8119
@ -20,6 +20,7 @@
|
||||
#define GSL_GSL_H
|
||||
|
||||
#include "array_view.h" // array_view, strided_array_view...
|
||||
#include "fail_fast.h" // fail_fast_assert
|
||||
#include "string_view.h" // zstring, string_view, zstring_builder...
|
||||
#include <memory>
|
||||
|
||||
@ -38,8 +39,8 @@ using owner = T;
|
||||
//
|
||||
// GSL.assert: assertions
|
||||
//
|
||||
#define Expects(x) Guide::fail_fast_assert((x))
|
||||
#define Ensures(x) Guide::fail_fast_assert((x))
|
||||
inline void Expects(bool cond) { Guide::fail_fast_assert(cond); }
|
||||
inline void Ensures(bool cond) { Guide::fail_fast_assert(cond); }
|
||||
|
||||
//
|
||||
// GSL.util: utilities
|
||||
|
Loading…
Reference in New Issue
Block a user