summaryrefslogtreecommitdiff
path: root/TAO/tao/ORB_Core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/ORB_Core.cpp')
-rw-r--r--TAO/tao/ORB_Core.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/TAO/tao/ORB_Core.cpp b/TAO/tao/ORB_Core.cpp
index 00bbf2b1a64..128405b1dd8 100644
--- a/TAO/tao/ORB_Core.cpp
+++ b/TAO/tao/ORB_Core.cpp
@@ -232,6 +232,24 @@ TAO_ORB_Core::init (int &argc, char *argv[])
// -1 is unknown, default to what the resource factory sets.
// @@ This is just for backwards compatibility.
+#if defined (DEBUG)
+ // Make it a little easier to debug programs using this code.
+ {
+ TAO_debug_level = ACE_Env_Value<u_int> ("TAO_ORB_DEBUG", 0);
+
+ char *value = ACE_OS::getenv ("TAO_ORB_DEBUG");
+
+ if (value != 0)
+ {
+ TAO_debug_level = ACE_OS::atoi (value);
+ if (TAO_debug_level <= 0)
+ TAO_debug_level = 1;
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO_debug_level == %d", TAO_debug_level));
+ }
+ }
+#endif /* DEBUG */
+
while (arg_shifter.is_anything_left ())
{
char *current_arg = arg_shifter.get_current ();
@@ -770,24 +788,6 @@ TAO_ORB_Core::init (int &argc, char *argv[])
arg_shifter.ignore_arg ();
}
-#if defined (DEBUG)
- // Make it a little easier to debug programs using this code.
- {
- TAO_debug_level = ACE_Env_Value<u_int> ("TAO_ORB_DEBUG", 0);
-
- char *value = ACE_OS::getenv ("TAO_ORB_DEBUG");
-
- if (value != 0)
- {
- TAO_debug_level = ACE_OS::atoi (value);
- if (TAO_debug_level <= 0)
- TAO_debug_level = 1;
- ACE_DEBUG ((LM_DEBUG,
- "TAO_debug_level == %d", TAO_debug_level));
- }
- }
-#endif /* DEBUG */
-
#if defined (SIGPIPE) && !defined (ACE_LACKS_UNIX_SIGNALS)
// There's really no way to deal with this in a portable manner, so
// we just have to suck it up and get preprocessor conditional and