Modified debug #defines

This commit is contained in:
John Wellbelove 2016-12-28 12:54:01 +00:00
parent 388f1c2d43
commit 3c5f8260c2

View File

@ -400,7 +400,7 @@ namespace etl
template <typename TIterator>
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;