Modified debug #defines

This commit is contained in:
John Wellbelove 2016-12-28 12:43:30 +00:00
parent 74ee81908a
commit 65b064a8b7

View File

@ -218,7 +218,7 @@ namespace etl
//***************************************************************************
T* operator ->()
{
#ifdef _DEBUG
#if defined(_DEBUG) || defined(DEBUG)
ETL_ASSERT(valid, ETL_ERROR(optional_invalid));
#endif
@ -230,7 +230,7 @@ namespace etl
//***************************************************************************
const T* operator ->() const
{
#ifdef _DEBUG
#if defined(_DEBUG) || defined(DEBUG)
ETL_ASSERT(valid, ETL_ERROR(optional_invalid));
#endif
@ -242,7 +242,7 @@ namespace etl
//***************************************************************************
T& operator *()
{
#ifdef _DEBUG
#if defined(_DEBUG) || defined(DEBUG)
ETL_ASSERT(valid, ETL_ERROR(optional_invalid));
#endif
@ -254,7 +254,7 @@ namespace etl
//***************************************************************************
const T& operator *() const
{
#ifdef _DEBUG
#if defined(_DEBUG) || defined(DEBUG)
ETL_ASSERT(valid, ETL_ERROR(optional_invalid));
#endif
@ -274,7 +274,7 @@ namespace etl
//***************************************************************************
T& value()
{
#ifdef _DEBUG
#if defined(_DEBUG) || defined(DEBUG)
ETL_ASSERT(valid, ETL_ERROR(optional_invalid));
#endif
@ -286,7 +286,7 @@ namespace etl
//***************************************************************************
const T& value() const
{
#ifdef _DEBUG
#if defined(_DEBUG) || defined(DEBUG)
ETL_ASSERT(valid, ETL_ERROR(optional_invalid));
#endif