comparison lwlib/lwlib-internal.h @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents 3078fd1074e8
children 34abfb24e891
comparison
equal deleted inserted replaced
770:336a418893b5 771:943eaba38521
6 #ifdef USE_ASSERTIONS 6 #ifdef USE_ASSERTIONS
7 /* Highly dubious kludge */ 7 /* Highly dubious kludge */
8 /* (thanks, Jamie, I feel better now -- ben) */ 8 /* (thanks, Jamie, I feel better now -- ben) */
9 void assert_failed (const char *, int, const char *); 9 void assert_failed (const char *, int, const char *);
10 # define abort() (assert_failed (__FILE__, __LINE__, "abort()")) 10 # define abort() (assert_failed (__FILE__, __LINE__, "abort()"))
11 # define assert(x) ((x) ? (void) 0 : assert_failed (__FILE__, __LINE__, #x)) 11 # define assert(x) ((x) ? 1 : (assert_failed (__FILE__, __LINE__, #x), 0))
12 #else 12 #else
13 # ifdef DEBUG_XEMACS 13 # ifdef DEBUG_XEMACS
14 # define assert(x) ((x) ? (void) 0 : (void) abort ()) 14 # define assert(x) ((x) ? 1 : ((void) abort (), 0))
15 # else 15 # else
16 # define assert(x) 16 # define assert(x) (1)
17 # endif 17 # endif
18 #endif 18 #endif
19 19
20 /* This represents a single widget within a widget tree. All the 20 /* This represents a single widget within a widget tree. All the
21 widgets in a widget tree are chained through the `next' field. 21 widgets in a widget tree are chained through the `next' field.