diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-12-30 14:54:55 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-12-30 14:54:55 +0000 |
commit | f5a529cfd4a9f1920c0b1d75375258dab2d71be1 (patch) | |
tree | 83028df92c92eae6557bf6bfecb943a8ca9c8df9 /lib/common/Timer.cpp | |
parent | a5400afe73492cbb8e0049a7facb2b32f0fcad04 (diff) |
Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as
well (e.g. wxWidgets) and it causes conflicts which are difficult to
resolve.
Diffstat (limited to 'lib/common/Timer.cpp')
-rw-r--r-- | lib/common/Timer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/common/Timer.cpp b/lib/common/Timer.cpp index b4629ed2..cac86512 100644 --- a/lib/common/Timer.cpp +++ b/lib/common/Timer.cpp @@ -347,7 +347,7 @@ Timer::Timer(size_t timeoutSecs, const std::string& rName) , mTimerHandle(INVALID_HANDLE_VALUE) #endif { - #ifndef NDEBUG + #ifndef BOX_RELEASE_BUILD if (timeoutSecs == 0) { BOX_TRACE(TIMER_ID "initialised for " << timeoutSecs << @@ -476,7 +476,7 @@ void Timer::Stop() Timer::~Timer() { - #ifndef NDEBUG + #ifndef BOX_RELEASE_BUILD BOX_TRACE(TIMER_ID "destroyed"); #endif @@ -503,7 +503,7 @@ Timer::Timer(const Timer& rToCopy) , mTimerHandle(INVALID_HANDLE_VALUE) #endif { - #ifndef NDEBUG + #ifndef BOX_RELEASE_BUILD if (mExpired) { BOX_TRACE(TIMER_ID "initialised from timer " << &rToCopy << ", " @@ -544,7 +544,7 @@ Timer::Timer(const Timer& rToCopy) Timer& Timer::operator=(const Timer& rToCopy) { - #ifndef NDEBUG + #ifndef BOX_RELEASE_BUILD if (rToCopy.mExpired) { BOX_TRACE(TIMER_ID "initialised from timer " << &rToCopy << ", " @@ -595,7 +595,7 @@ Timer& Timer::operator=(const Timer& rToCopy) void Timer::OnExpire() { - #ifndef NDEBUG + #ifndef BOX_RELEASE_BUILD BOX_TRACE(TIMER_ID "fired"); #endif |