comparison lwlib/lwlib-internal.h @ 3025:facf3239ba30

[xemacs-hg @ 2005-10-25 11:16:19 by ben] rename new->new_, convert 'foo to `foo' EmacsFrame.c, ExternalClient.c, ExternalShell.c, chartab.c, cmdloop.c, compiler.h, console.c, database.c, device-msw.c, device-x.c, device.c, doc.c, dragdrop.c, eval.c, event-msw.c, event-stream.c, events.c, extents.c, file-coding.c, fns.c, frame-tty.c, frame.c, gpmevent.c, gutter.c, hash.c, imgproc.c, indent.c, keymap.c, lisp-union.h, macros.c, malloc.c, marker.c, menubar-x.c, menubar.c, mule-charset.c, number.c, process.c, profile.h, ralloc.c, redisplay.c, select-common.h, select.c, syntax.c, sysfile.h, sysproc.h, systime.h, syswindows.h, toolbar.c, tooltalk.c, tparam.c, unexaix.c, unexalpha.c, unexconvex.c, unexec.c, unexhp9k800.c, unexmips.c, unicode.c, window.c: new -> new_. 'foo -> `foo'. lwlib-internal.h: redo assert macros to follow lisp.h and not trigger warnings. lwlib.c, xlwtabs.c: new -> new_.
author ben
date Tue, 25 Oct 2005 11:16:49 +0000
parents 34abfb24e891
children 03ab78e48ef6
comparison
equal deleted inserted replaced
3024:b7f26b2f78bd 3025:facf3239ba30
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 EXTERN_C void assert_failed (const char *, int, const char *); 9 EXTERN_C 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) ? 1 : (assert_failed (__FILE__, __LINE__, #x), 0)) 11 # define assert(x) ((x) ? (void) 0 : assert_failed (__FILE__, __LINE__, #x))
12 #else 12 #else
13 # ifdef DEBUG_XEMACS 13 # ifdef DEBUG_XEMACS
14 # define assert(x) ((x) ? 1 : ((void) abort (), 0)) 14 # define assert(x) ((x) ? (void) 0 : (void) abort ())
15 # else 15 # else
16 # define assert(x) (1) 16 # define assert(x) ((void) 0)
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.