summaryrefslogtreecommitdiff
path: root/TAO/tao/debug.h
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-09 05:08:54 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-09 05:08:54 +0000
commite75bb4af0f07342a7d6c11cde0340931ba5ddb82 (patch)
tree8ccf4808a27a27a8a563fd116a98d67a63c38f8b /TAO/tao/debug.h
parent9a3180523bd5768572e5f8085ad709c078cd3cfd (diff)
downloadATCD-e75bb4af0f07342a7d6c11cde0340931ba5ddb82.tar.gz
ChangeLogTag:Mon Feb 8 17:09:03 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/debug.h')
-rw-r--r--TAO/tao/debug.h76
1 files changed, 0 insertions, 76 deletions
diff --git a/TAO/tao/debug.h b/TAO/tao/debug.h
index 93e76e4720e..27f1fc3fda6 100644
--- a/TAO/tao/debug.h
+++ b/TAO/tao/debug.h
@@ -38,80 +38,4 @@ extern TAO_Export u_int TAO_orbdebug;
// set by getopt
extern TAO_Export char *TAO_debug_filter;
-// These are just simple 0, 1, and 2 argument messages that will
-// appear when debugging's enabled, regardless of category. They also
-// just compile out painlessly.
-
-#if defined (DEBUG)
-#include <stdio.h>
-#include <errno.h>
-#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); }
-
-// dump CORBA_Exception, if any, with id tag
-#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)); }
-
-// 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", \
- s, WSAGetLastError()); }
-#else
-#define dsockerr(s) dperror(s)
-#endif /* _WINSOCKAPI_ */
-
-#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 */
-
-// These don't compile out; you must #ifdef them. This is done
-// intentionally since CPP macros have severe limits, and varargs _(or
-// lack thereof) is one of them.
-
-#if defined (DEBUG)
-
-// This is like an fprintf statement except the filter is a set of
-// characters (string). If TAO_debug_level is nonzero and any
-// characters in that string are in the "TAO_debug_filter" string, the
-// message is then printed. Assign thosee characters as needed.
-
-extern void TAO_Export dmsg_filter (const char *filter,
- const char *fmt,
- ...);
-
-// 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,
- const char *fmt,
- ...);
-
-// General varargs debug message printer, no filtering
-
-extern void TAO_Export dmsg_v (const char *fmt,
- ...);
-extern void TAO_Export _dmsg_x (CORBA_Environment &env,
- const char *info);
-extern void TAO_Export dmsg_opaque (char *label,
- u_char *buffer,
- u_long len);
-extern void TAO_Export dmsg_opaque_full (char *label,
- const u_char *buffer,
- u_long len);
-#endif /* DEBUG */
-
#endif /* TAO_DEBUG_H */