Mailing List Archive

cvs commit: apache-2.0/src/include httpd.h
trawick 00/10/16 18:04:34

Modified: src/include httpd.h
Log:
Capitalize AP_DEBUG_ASSERT(). All macros should shout, even
if their forbearers (e.g., ap_assert()) did not.
Submitted by: Greg Stein

Revision Changes Path
1.105 +3 -3 apache-2.0/src/include/httpd.h

Index: httpd.h
===================================================================
RCS file: /home/cvs/apache-2.0/src/include/httpd.h,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -r1.104 -r1.105
--- httpd.h 2000/10/16 18:00:42 1.104
+++ httpd.h 2000/10/17 01:04:33 1.105
@@ -1598,7 +1598,7 @@
* Redefine assert() to something more useful for an Apache...
*
* Use ap_assert() if the condition should always be checked.
- * Use ap_debug_assert() if the condition should only be checked when AP_DEBUG
+ * Use AP_DEBUG_ASSERT() if the condition should only be checked when AP_DEBUG
* is defined.
*/
/**
@@ -1613,9 +1613,9 @@
#define ap_assert(exp) ((exp) ? (void)0 : ap_log_assert(#exp,__FILE__,__LINE__))

#ifdef AP_DEBUG
-#define ap_debug_assert(exp) ap_assert(exp)
+#define AP_DEBUG_ASSERT(exp) ap_assert(exp)
#else
-#define ap_debug_assert(exp) ((void)0)
+#define AP_DEBUG_ASSERT(exp) ((void)0)
#endif

/* A set of flags which indicate places where the server should raise(SIGSTOP).