diff options
author | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-05-04 21:57:57 +0000 |
---|---|---|
committer | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-05-04 21:57:57 +0000 |
commit | 65d24277bfb9f76b612fa51770d5d63e1d34b528 (patch) | |
tree | 023841d60bff520093c40ffeddf40288b97615d3 /src/context | |
parent | 1571e73e83ecb5fec2f2ddd599bd3823e8f532e7 (diff) |
Disabling semantic checks in competition mode.
Adding function debugTagIsOn to safely test for tracing in any
compilation mode.
Removing irrelevant command-line options from usage message
in muzzled mode.
Diffstat (limited to 'src/context')
-rw-r--r-- | src/context/context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/context/context.cpp b/src/context/context.cpp index 2be116baa..2de6e2051 100644 --- a/src/context/context.cpp +++ b/src/context/context.cpp @@ -227,7 +227,7 @@ ContextObj* ContextObj::restoreAndContinue() throw(AssertionException) { void ContextObj::destroy() throw(AssertionException) { - if( DebugOut.isOn("context") ) { + if( debugTagIsOn("context") ) { /* Context can be big and complicated, so we only want to process this output * if we're really going to use it. (Same goes below.) */ @@ -246,7 +246,7 @@ void ContextObj::destroy() throw(AssertionException) { if(d_pContextObjRestore == NULL) { break; } - if( DebugOut.isOn("context") ) { + if( debugTagIsOn("context") ) { Debug("context") << "in destroy " << this << ", restore object is " << d_pContextObjRestore << " at level " << d_pContextObjRestore->getLevel() << ":" << std::endl @@ -254,7 +254,7 @@ void ContextObj::destroy() throw(AssertionException) { } restoreAndContinue(); } - if( DebugOut.isOn("context") ) { + if( debugTagIsOn("context") ) { Debug("context") << "after destroy " << this << ":" << std::endl << *getContext() << std::endl; } |