comparison lwlib/lwlib-internal.h @ 448:3078fd1074e8 r21-2-39

Import from CVS: tag r21-2-39
author cvs
date Mon, 13 Aug 2007 11:38:25 +0200
parents abe6d1db359e
children 943eaba38521
comparison
equal deleted inserted replaced
447:4fc5f13f3bd3 448:3078fd1074e8
1 #ifndef INCLUDED_lwlib_internal_h_ 1 #ifndef INCLUDED_lwlib_internal_h_
2 #define INCLUDED_lwlib_internal_h_ 2 #define INCLUDED_lwlib_internal_h_
3 3
4 #include "lwlib.h" 4 #include "lwlib.h"
5
6 #ifdef USE_ASSERTIONS
7 /* Highly dubious kludge */
8 /* (thanks, Jamie, I feel better now -- ben) */
9 void assert_failed (const char *, int, const char *);
10 # define abort() (assert_failed (__FILE__, __LINE__, "abort()"))
11 # define assert(x) ((x) ? (void) 0 : assert_failed (__FILE__, __LINE__, #x))
12 #else
13 # ifdef DEBUG_XEMACS
14 # define assert(x) ((x) ? (void) 0 : (void) abort ())
15 # else
16 # define assert(x)
17 # endif
18 #endif
5 19
6 /* This represents a single widget within a widget tree. All the 20 /* This represents a single widget within a widget tree. All the
7 widgets in a widget tree are chained through the `next' field. 21 widgets in a widget tree are chained through the `next' field.
8 `info' is a back pointer to the widget tree. */ 22 `info' is a back pointer to the widget tree. */
9 23