--- ray/src/common/standard.h 2003/03/10 17:13:29 2.19 +++ ray/src/common/standard.h 2003/03/27 04:16:33 2.20 @@ -1,4 +1,4 @@ -/* RCSid $Id: standard.h,v 2.19 2003/03/10 17:13:29 greg Exp $ */ +/* RCSid $Id: standard.h,v 2.20 2003/03/27 04:16:33 greg Exp $ */ /* * Miscellaneous definitions required by many routines. */ @@ -87,11 +87,11 @@ extern double tcos(); /* table-based cosine approxim #define ttan(x) (tsin(x)/tcos(x)) #endif /* custom version of assert(3) */ -#define CHECK(be,et,em) ((be) ? error(et,em) : 0) +#define CHECK(be,et,em) if (be) error(et,em) else #ifdef DEBUG #define DCHECK CHECK #else -#define DCHECK(be,et,em) 0 +#define DCHECK(be,et,em) (void)0 #endif /* memory operations */ #ifdef NOSTRUCTASS