diff --git a/src/debug_count.h b/src/debug_count.h index ac545f86..dd6dfe32 100644 --- a/src/debug_count.h +++ b/src/debug_count.h @@ -74,6 +74,18 @@ namespace etl return *this; } + inline debug_count& operator +=(int32_t n) + { + count += n; + return *this; + } + + inline debug_count& operator -=(int32_t n) + { + count -= n; + return *this; + } + inline operator int32_t() { return count; @@ -101,6 +113,16 @@ namespace etl return *this; } + inline debug_count& operator +=(int32_t /*n*/) + { + return *this; + } + + inline debug_count& operator -=(int32_t /*n*/) + { + return *this; + } + inline operator int32_t() { return 0;