summaryrefslogtreecommitdiff
path: root/ace/ACE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/ACE.cpp')
-rw-r--r--ace/ACE.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp
index af89390c667..4548d7596bd 100644
--- a/ace/ACE.cpp
+++ b/ace/ACE.cpp
@@ -164,7 +164,8 @@ ACE::compiler_beta_version (void)
char
ACE::debug (void)
{
- return ACE::debug_;
+ static const char* debug = ACE_OS::getenv ("ACE_DEBUG");
+ return ACE::debug_ != 0 ? ACE::debug_ : (debug != 0 ? (*debug - '0'): 0);
}
void