mirror of
https://github.com/ETLCPP/etl.git
synced 2026-07-01 06:48:44 +08:00
Modified debug #defines
This commit is contained in:
parent
388f1c2d43
commit
3c5f8260c2
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user