diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2019-10-30 15:27:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 15:27:10 -0700 |
commit | 43ab3f4cd1aa5549cb1aa3c20a2d589614bcb8fc (patch) | |
tree | cf7b5d7f73a4d4ddc34492334a7d0eb90b57b77b /src/context/cdlist.h | |
parent | 8dda9531995953c3cec094339002f2ee7cadae08 (diff) |
Unify CVC4_CHECK/CVC4_DCHECK/AlwaysAssert/Assert. (#3366)
Diffstat (limited to 'src/context/cdlist.h')
-rw-r--r-- | src/context/cdlist.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/context/cdlist.h b/src/context/cdlist.h index dda88a0fd..95501df8e 100644 --- a/src/context/cdlist.h +++ b/src/context/cdlist.h @@ -25,10 +25,10 @@ #include <string> #include <sstream> -#include "base/cvc4_assert.h" +#include "base/check.h" +#include "context/cdlist_forward.h" #include "context/context.h" #include "context/context_mm.h" -#include "context/cdlist_forward.h" namespace CVC4 { namespace context { @@ -139,8 +139,8 @@ private: size_t newSize = GROWTH_FACTOR * d_sizeAlloc; if(newSize > d_allocator.max_size()) { newSize = d_allocator.max_size(); - Assert(newSize > d_sizeAlloc, - "cannot request larger list due to allocator limits"); + Assert(newSize > d_sizeAlloc) + << "cannot request larger list due to allocator limits"; } T* newList = d_allocator.allocate(newSize); Debug("cdlist") << "2x grow of cdlist " << this @@ -306,7 +306,7 @@ public: * Access to the ith item in the list. */ const T& operator[](size_t i) const { - Assert(i < d_size, "index out of bounds in CDList::operator[]"); + Assert(i < d_size) << "index out of bounds in CDList::operator[]"; return d_list[i]; } @@ -314,7 +314,7 @@ public: * Returns the most recent item added to the list. */ const T& back() const { - Assert(d_size > 0, "CDList::back() called on empty list"); + Assert(d_size > 0) << "CDList::back() called on empty list"; return d_list[d_size - 1]; } |