From 77859ad023347741cf40a986da90fdd5339fef52 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Wed, 28 Dec 2016 12:51:19 +0000 Subject: [PATCH] Modified debug #defines --- src/ipriority_queue.h | 2 +- src/iunordered_map.h | 2 +- src/iunordered_multimap.h | 2 +- src/iunordered_multiset.h | 2 +- src/iunordered_set.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ipriority_queue.h b/src/ipriority_queue.h index 8e58300a..2992acc5 100644 --- a/src/ipriority_queue.h +++ b/src/ipriority_queue.h @@ -167,7 +167,7 @@ namespace etl template void assign(TIterator first, TIterator last) { -#ifdef _DEBUG +#if defined(_DEBUG) || defined(DEBUG) difference_type count = std::distance(first, last); ETL_ASSERT(count >= 0, ETL_ERROR(priority_queue_iterator)); ETL_ASSERT(static_cast(count) <= max_size(), ETL_ERROR(priority_queue_full)); diff --git a/src/iunordered_map.h b/src/iunordered_map.h index e8447fa6..2c1ff1bb 100644 --- a/src/iunordered_map.h +++ b/src/iunordered_map.h @@ -736,7 +736,7 @@ namespace etl template void assign(TIterator first, TIterator last) { -#ifdef _DEBUG +#if defined(_DEBUG) || defined(DEBUG) difference_type count = std::distance(first, last); ETL_ASSERT(count >= 0, ETL_ERROR(unordered_map_iterator)); ETL_ASSERT(size_t(count) <= max_size() , ETL_ERROR(unordered_map_full)); diff --git a/src/iunordered_multimap.h b/src/iunordered_multimap.h index 2d2ba701..6b62924a 100644 --- a/src/iunordered_multimap.h +++ b/src/iunordered_multimap.h @@ -630,7 +630,7 @@ namespace etl template void assign(TIterator first, TIterator last) { -#ifdef _DEBUG +#if defined(_DEBUG) || defined(DEBUG) difference_type count = std::distance(first, last); ETL_ASSERT(count >= 0, ETL_ERROR(unordered_multimap_iterator)); ETL_ASSERT(size_t(count) <= max_size() , ETL_ERROR(unordered_multimap_full)); diff --git a/src/iunordered_multiset.h b/src/iunordered_multiset.h index 995836b5..29a75fc3 100644 --- a/src/iunordered_multiset.h +++ b/src/iunordered_multiset.h @@ -625,7 +625,7 @@ namespace etl template void assign(TIterator first, TIterator last) { -#ifdef _DEBUG +#if defined(_DEBUG) || defined(DEBUG) difference_type count = std::distance(first, last); ETL_ASSERT(count >= 0, ETL_ERROR(unordered_multiset_iterator)); ETL_ASSERT(size_t(count) <= max_size() , ETL_ERROR(unordered_multiset_full)); diff --git a/src/iunordered_set.h b/src/iunordered_set.h index e11ac9c6..af6c90c8 100644 --- a/src/iunordered_set.h +++ b/src/iunordered_set.h @@ -625,7 +625,7 @@ namespace etl template void assign(TIterator first, TIterator last) { -#ifdef _DEBUG +#if defined(_DEBUG) || defined(DEBUG) difference_type count = std::distance(first, last); ETL_ASSERT(count >= 0, ETL_ERROR(unordered_set_iterator)); ETL_ASSERT(size_t(count) <= max_size() , ETL_ERROR(unordered_set_full));