From 3c5f8260c2730eac04bde8d875967a6631a34580 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Wed, 28 Dec 2016 12:54:01 +0000 Subject: [PATCH] Modified debug #defines --- src/ibasic_string.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ibasic_string.h b/src/ibasic_string.h index 85bd6d9c..a6f3616d 100644 --- a/src/ibasic_string.h +++ b/src/ibasic_string.h @@ -400,7 +400,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(string_iterator)); #endif @@ -893,7 +893,7 @@ namespace etl //********************************************************************* size_t find(const_pointer s, size_t pos = 0) const { -#ifdef _DEBUG +#if defined(_DEBUG) || defined(DEBUG) if ((pos + etl::strlen(s)) > size()) { return npos; @@ -920,7 +920,7 @@ namespace etl //********************************************************************* size_t find(const_pointer s, size_t pos, size_t n) const { -#ifdef _DEBUG +#if defined(_DEBUG) || defined(DEBUG) if ((pos + etl::strlen(s) - n) > size()) { return npos;