diff options
author | Eugene Kosov <claprix@yandex.ru> | 2020-08-12 10:24:09 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2020-08-12 10:25:27 +0300 |
commit | 5a4ae142f48bcf9e11becfd4c98d72de338bba6a (patch) | |
tree | 79d185f62bdf9ff936a815cf3f8db0eeec570349 /include | |
parent | 01738d08f30315f10c14faa605d0087e54156cd0 (diff) | |
download | mariadb-git-5a4ae142f48bcf9e11becfd4c98d72de338bba6a.tar.gz |
replace assert() with DBUG_ASSERT()
Diffstat (limited to 'include')
-rw-r--r-- | include/ilist.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/ilist.h b/include/ilist.h index 4b89efe7717..dc75d6907ce 100644 --- a/include/ilist.h +++ b/include/ilist.h @@ -18,6 +18,8 @@ #pragma once +#include "my_dbug.h" + #include <cstddef> #include <iterator> @@ -69,12 +71,12 @@ public: typedef T *pointer; typedef T &reference; - Iterator(ListNode *node) : node_(node) { assert(node_); } + Iterator(ListNode *node) : node_(node) { DBUG_ASSERT(node_); } Iterator &operator++() { node_= node_->next; - assert(node_); + DBUG_ASSERT(node_); return *this; } Iterator operator++(int) @@ -87,7 +89,7 @@ public: Iterator &operator--() { node_= node_->prev; - assert(node_); + DBUG_ASSERT(node_); return *this; } Iterator operator--(int) |