OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2.h.in versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2.h.in 1.6 -> 1.7

--- l2.h.in      2001/09/12 13:50:46     1.6
+++ l2.h.in      2001/09/13 16:32:12     1.7
@@ -64,6 +64,19 @@
 #define TRUE (!FALSE)
 #endif
 
+#ifndef DEBUG
+#define ASSERT(expr) ((voir)0)
+#else
+#define ASSERT(expr)\
+        do {\
+            if (!(expr)) {\
+                fprintf(stderr, "Assertion failed in %s line %d! ", __FILE__, __LINE__);\
+                exit(1);\
+            }\
+        }\
+        while (0)
+#endif
+
 /* forward declarations for opaque data structures */
 union  l2_context_un;
 struct l2_param_st;

CVSTrac 2.0.1