From 43ab3f4cd1aa5549cb1aa3c20a2d589614bcb8fc Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Wed, 30 Oct 2019 15:27:10 -0700 Subject: Unify CVC4_CHECK/CVC4_DCHECK/AlwaysAssert/Assert. (#3366) --- src/context/cdqueue.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/context/cdqueue.h') diff --git a/src/context/cdqueue.h b/src/context/cdqueue.h index 6ad0e9339..079d2265c 100644 --- a/src/context/cdqueue.h +++ b/src/context/cdqueue.h @@ -125,21 +125,21 @@ public: * function. */ void pop(){ - Assert(!empty(), "Attempting to pop from an empty queue."); + Assert(!empty()) << "Attempting to pop from an empty queue."; ParentType::makeCurrent(); d_iter = d_iter + 1; if (empty() && d_lastsave != ParentType::d_size) { // Some elements have been enqueued and dequeued in the same // context and now the queue is empty we can destruct them. ParentType::truncateList(d_lastsave); - Assert(ParentType::d_size == d_lastsave); + Assert(ParentType::d_size == d_lastsave); d_iter = d_lastsave; } } /** Returns a reference to the next element on the queue. */ const T& front() const{ - Assert(!empty(), "No front in an empty queue."); + Assert(!empty()) << "No front in an empty queue."; return ParentType::d_list[d_iter]; } @@ -147,7 +147,7 @@ public: * Returns the most recent item added to the queue. */ const T& back() const { - Assert(!empty(), "CDQueue::back() called on empty list"); + Assert(!empty()) << "CDQueue::back() called on empty list"; return ParentType::d_list[ParentType::d_size - 1]; } -- cgit v1.2.3