comparison src/lisp.h @ 32:e04119814345 r19-15b99

Import from CVS: tag r19-15b99
author cvs
date Mon, 13 Aug 2007 08:52:56 +0200
parents 859a2309aef8
children c0965ff3b039
comparison
equal deleted inserted replaced
31:b9328a10c56c 32:e04119814345
272 /* We define assert iff USE_ASSERTIONS or DEBUG_XEMACS is defined. 272 /* We define assert iff USE_ASSERTIONS or DEBUG_XEMACS is defined.
273 Otherwise we it to NULL. Quantify has shown that the time the 273 Otherwise we it to NULL. Quantify has shown that the time the
274 assert checks take is measurable so let's not include them in 274 assert checks take is measurable so let's not include them in
275 production binaries. */ 275 production binaries. */
276 276
277 #define abort() (assert_failed (__FILE__, __LINE__, "abort()"))
278
277 #ifdef USE_ASSERTIONS 279 #ifdef USE_ASSERTIONS
278 /* Highly dubious kludge */ 280 /* Highly dubious kludge */
279 /* (thanks, Jamie, I feel better now -- ben) */ 281 /* (thanks, Jamie, I feel better now -- ben) */
280 DECLARE_DOESNT_RETURN (assert_failed (CONST char *, int, CONST char *)); 282 DECLARE_DOESNT_RETURN (assert_failed (CONST char *, int, CONST char *));
281 # define abort() (assert_failed (__FILE__, __LINE__, "abort()"))
282 # define assert(x) ((x) ? (void) 0 : assert_failed (__FILE__, __LINE__, #x)) 283 # define assert(x) ((x) ? (void) 0 : assert_failed (__FILE__, __LINE__, #x))
283 #else 284 #else
284 # ifdef DEBUG_XEMACS 285 # ifdef DEBUG_XEMACS
285 # define assert(x) ((x) ? (void) 0 : (void) abort ()) 286 # define assert(x) ((x) ? (void) 0 : (void) abort ())
286 # else 287 # else