summaryrefslogtreecommitdiff
path: root/TAO/tao/debug.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit0902828269fb1a42ed23c208fd61bac76aaddc13 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /TAO/tao/debug.h
parente7788cff873f30e65d44d38db7cfafc175f748a3 (diff)
downloadATCD-0902828269fb1a42ed23c208fd61bac76aaddc13.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'TAO/tao/debug.h')
-rw-r--r--TAO/tao/debug.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/TAO/tao/debug.h b/TAO/tao/debug.h
index 3a93c1f85bd..b5ae4428af7 100644
--- a/TAO/tao/debug.h
+++ b/TAO/tao/debug.h
@@ -6,7 +6,7 @@
//
// = LIBRARY
// TAO
-//
+//
// = FILENAME
// debug.h
//
@@ -15,11 +15,11 @@
//
// = AUTHOR
// Copyright 1994-1995 by Sun Microsystems Inc.
-//
+//
// ============================================================================
#ifndef TAO_DEBUG_H
-#define TAO_DEBUG_H
+#define TAO_DEBUG_H
// These are global to simplify is use by other code, very much in
// particular by getopt and related argument-parsing code
@@ -28,7 +28,7 @@
// such as process initialization. They're treated as immutable.
// 0 to ??; higher == more
-extern TAO_Export u_int TAO_debug_level;
+extern TAO_Export u_int TAO_debug_level;
// debug messages on (1) or off (0)
extern TAO_Export u_int TAO_orbdebug;
@@ -46,35 +46,35 @@ extern TAO_Export char *TAO_debug_filter;
#include <string.h>
// 1, 2, 3 argument messages -- generic
-#define dmsg(s) { if (TAO_debug_level) dmsg_v (s); }
-#define dmsg1(s,a1) { if (TAO_debug_level) dmsg_v (s, a1); }
-#define dmsg2(s,a1,a2) { if (TAO_debug_level) dmsg_v (s, a1, a2); }
+#define dmsg(s) { if (TAO_debug_level) dmsg_v (s); }
+#define dmsg1(s,a1) { if (TAO_debug_level) dmsg_v (s, a1); }
+#define dmsg2(s,a1,a2) { if (TAO_debug_level) dmsg_v (s, a1, a2); }
// dump CORBA_Exception, if any, with id tag
-#define dexc(env,s) { if (TAO_debug_level && env.exception ()) \
- _dmsg_x (env, s); }
+#define dexc(env,s) { if (TAO_debug_level && env.exception ()) \
+ _dmsg_x (env, s); }
// dump POSIX error indication, if any, with ID tag
-#define dperror(str) { if (TAO_debug_level) dmsg_v ("%s: %s", \
- str, strerror (errno)); }
+#define dperror(str) { if (TAO_debug_level) dmsg_v ("%s: %s", \
+ str, strerror (errno)); }
// dump socket error indication, if any, with ID tag
#if defined (_WINSOCKAPI_)
-#define dsockerr(s) { if (TAO_debug_level) dmsg_v ("%s: winsock error %d", \
+#define dsockerr(s) { if (TAO_debug_level) dmsg_v ("%s: winsock error %d", \
s, WSAGetLastError()); }
#else
-#define dsockerr(s) dperror(s)
+#define dsockerr(s) dperror(s)
#endif /* _WINSOCKAPI_ */
-#else /* !DEBUG */
+#else /* !DEBUG */
#define dmsg(s) { }
#define dmsg1(s,a1) { }
#define dmsg2(s,a1,a2) { }
#define dexc(env, s) { }
-#define dperror(s) { }
-#define dsockerr(s) { }
-#endif /* DEBUG */
+#define dperror(s) { }
+#define dsockerr(s) { }
+#endif /* DEBUG */
// These don't compile out; you must #ifdef them. This is done
// intentionally since CPP macros have severe limits, and varargs _(or
@@ -94,7 +94,7 @@ extern void TAO_Export dmsg_filter (const char *filter,
// Filter according to TAO_debug_level instead of category. (For
// speed, test against TAO_debug_level directly.)
-extern void TAO_Export dmsg_filter (u_int level,
+extern void TAO_Export dmsg_filter (u_int level,
const char *fmt,
...);