OSSP CVS Repository

ossp - Check-in [1007]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1007
Date: 2001-Sep-14 12:12:48 (local)
2001-Sep-14 10:12:48 (UTC)
User:rse
Branch:
Comment: provide cleanup macros
Tickets:
Inspections:
Files:
ossp-pkg/l2/l2_p.h      1.17 -> 1.18     7 inserted, 0 deleted

ossp-pkg/l2/l2_p.h 1.17 -> 1.18

--- l2_p.h       2001/09/13 19:18:34     1.17
+++ l2_p.h       2001/09/14 10:12:48     1.18
@@ -47,6 +47,13 @@
 #include "dmalloc.h"
 #endif
 
+#define cu(value) \
+    do { rv = value; \
+         goto cus; } while (0)
+#define cu_on(expr,value) \
+    if (expr) \
+        cu(value)
+
 #define L2_MAX_MSGSIZE    4096
 #define L2_MAX_CHANNELS    128
 #define L2_MAX_FORMATTERS  128

CVSTrac 2.0.1