summaryrefslogtreecommitdiff
path: root/TAO/tao/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/debug.h')
-rw-r--r--TAO/tao/debug.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/TAO/tao/debug.h b/TAO/tao/debug.h
new file mode 100644
index 00000000000..9149d710b90
--- /dev/null
+++ b/TAO/tao/debug.h
@@ -0,0 +1,44 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file debug.h
+ *
+ * $Id$
+ *
+ * @author DOC Group - Wash U and UCI
+ */
+//=============================================================================
+
+
+#ifndef TAO_DEBUG_H
+#define TAO_DEBUG_H
+
+#include /**/ "ace/pre.h"
+
+#include /**/ "tao/TAO_Export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include /**/ "tao/Versioned_Namespace.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+// These are global to simplify is use by other code, very much in
+// particular by getopt and related argument-parsing code
+//
+// THREADING NOTE: don't set them except in an unthreaded environment
+// such as process initialization. They're treated as immutable.
+
+// 0 to ??; higher == more
+extern TAO_Export unsigned int TAO_debug_level;
+
+// debug messages on (1) or off (0)
+extern TAO_Export unsigned int TAO_orbdebug;
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+#endif /* TAO_DEBUG_H */