tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jni/native/include tcn.h
Date Mon, 18 Apr 2005 12:30:54 GMT
mturk       2005/04/18 05:30:54

  Modified:    jni/native/include tcn.h
  Log:
  Added ASSERT macro for DEBUG build to track the invalid params.
  
  Revision  Changes    Path
  1.3       +7 -0      jakarta-tomcat-connectors/jni/native/include/tcn.h
  
  Index: tcn.h
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/include/tcn.h,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- tcn.h	17 Jan 2005 07:22:50 -0000	1.2
  +++ tcn.h	18 Apr 2005 12:30:54 -0000	1.3
  @@ -19,6 +19,13 @@
   
   #include <jni.h>
   
  +#if defined(_DEBUG) || defined(DEBUG)
  +#include <assert.h>
  +#define TCN_ASSERT(x)  assert((x))
  +#else
  +#define TCN_ASSERT(x) (void)0
  +#endif
  +
   #ifdef min
   #undef min
   #endif
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message