diff options
-rw-r--r-- | Carpet/CarpetLib/src/defs.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/defs.hh b/Carpet/CarpetLib/src/defs.hh index d1d8b73f0..a44d20ef0 100644 --- a/Carpet/CarpetLib/src/defs.hh +++ b/Carpet/CarpetLib/src/defs.hh @@ -28,6 +28,11 @@ using namespace std; +// Check a return value +#define check(_expr) do { bool const _val = (_expr); assert(_val); } while(0) + + + // Define the restrict qualifier #ifdef CCTK_CXX_RESTRICT # define restrict CCTK_CXX_RESTRICT |