You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2003/07/02 06:40:59 UTC

cvs commit: xml-axis/c/src/common Debug.h

damitha     2003/07/01 21:40:59

  Modified:    c/src/common Debug.h
  Log:
  added
  --------------
  -------------
  #define DEBUG
  #if defined(DEBUG)
    #define DEBUG1(X) debugger.debug(X);
    #define DEBUG2(X,Y) debugger.debug(X,Y);
  #endif
  #if !defined(DEBUG)
    #define DEBUG1(X) "";
    #define DEBUG2(X,Y) "";
  #endif
  ---------------
  ---------------
  so that whenever you call DEBUB1(X) or DEBUG(X,Y) from elsewhere in code
  debugger.debug(X) or debugger.dubug(X,Y) will be called respectively
  
  Revision  Changes    Path
  1.3       +9 -0      xml-axis/c/src/common/Debug.h
  
  Index: Debug.h
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/common/Debug.h,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Debug.h	1 Jul 2003 04:45:01 -0000	1.2
  +++ Debug.h	2 Jul 2003 04:40:59 -0000	1.3
  @@ -7,6 +7,15 @@
   #include <fstream>
   
   #define DEBUG
  +#if defined(DEBUG)
  +  #define DEBUG1(X) debugger.debug(X);
  +  #define DEBUG2(X,Y) debugger.debug(X,Y);
  +#endif
  +#if !defined(DEBUG)
  +  #define DEBUG1(X) "";
  +  #define DEBUG2(X,Y) ""; 
  +#endif
  +
   extern unsigned char chEBuf[1024];
   using namespace std;
   class Debug