Author: adrian.chadd
Date: Mon Jun 1 02:14:51 2009
New Revision: 14082
Modified:
branches/LUSCA_HEAD/include/util.h
Log:
Add in L_CASSERT(); an assert() to be used during debugging -but- the
subsequent code
handles the errorneous condition correctly.
Modified: branches/LUSCA_HEAD/include/util.h
==============================================================================
--- branches/LUSCA_HEAD/include/util.h (original)
+++ branches/LUSCA_HEAD/include/util.h Mon Jun 1 02:14:51 2009
@@ -56,6 +56,10 @@
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif
+/* This is for "compile-time checking, but code subsequently handles the
condition gracefully */
+#define L_CASSERT(a) assert((a))
+
+
extern const char *getfullhostname(void);
extern const char *mkhttpdlogtime(const time_t *);
extern const char *mkrfc1123(time_t);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---