Index: ossp-pkg/l2/l2_p.h RCS File: /v/ossp/cvs/ossp-pkg/l2/l2_p.h,v rcsdiff -q -kk '-r1.18' '-r1.19' -u '/v/ossp/cvs/ossp-pkg/l2/l2_p.h,v' 2>/dev/null --- l2_p.h 2001/09/14 10:12:48 1.18 +++ l2_p.h 2001/09/21 17:30:58 1.19 @@ -54,6 +54,17 @@ if (expr) \ cu(value) +#ifndef NDEBUG +#define TRACE(str)\ + do {\ + fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, str);\ + exit(1);\ + }\ + while (0) +#else +#define TRACE(expr) ((void)0) +#endif + #define L2_MAX_MSGSIZE 4096 #define L2_MAX_CHANNELS 128 #define L2_MAX_FORMATTERS 128