diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-03-04 21:13:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-03-04 21:13:00 +0000 |
commit | e09d86ff5fd68943fbc79de6535b28033e7a8428 (patch) | |
tree | d980ae0ab1679c720d35d95f83fde97de89fc006 /Carpet/CarpetLib/src/defs.hh | |
parent | fd1f888aeaf1d468b44e7ef7ab77255c7ea8e706 (diff) |
CarpetLib: Use CARPET_DEBUG and CARPET_OPTIMISE instead of NDEBUG
Use CARPET_DEBUG and CARPET_OPTIMISE (instead of NDEBUG) to decide
whether to perform or omit somewhat expensive self checks. When
CARPET_DEBUG is defined, even expensive checks are performed. When
CARPET_OPTIMISE is defined, even cheap checks are omitted.
darcs-hash:20070304211311-dae7b-ae917b0f40496fedf4bb5d1c2a70ad31a5167ca3.gz
Diffstat (limited to 'Carpet/CarpetLib/src/defs.hh')
-rw-r--r-- | Carpet/CarpetLib/src/defs.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/defs.hh b/Carpet/CarpetLib/src/defs.hh index f9f58cb51..ffc8ed7df 100644 --- a/Carpet/CarpetLib/src/defs.hh +++ b/Carpet/CarpetLib/src/defs.hh @@ -38,7 +38,7 @@ using namespace std; // Use this macro AT instead of vector's operator[] or at(). // Depending on the macro NDEBUG, this macro AT either checks for // valid indices or not. -#ifndef NDEBUG +#ifndef CARPET_OPTIMISE # define AT(index) at(index) #else # define AT(index) operator[](index) |