comparison lwlib/lwlib-internal.h @ 1650:34abfb24e891

[xemacs-hg @ 2003-08-28 15:44:04 by james] Fix the C++ build, with many module-specific fixes.
author james
date Thu, 28 Aug 2003 15:44:30 +0000
parents 943eaba38521
children facf3239ba30
comparison
equal deleted inserted replaced
1649:9afdad50eaf7 1650:34abfb24e891
4 #include "lwlib.h" 4 #include "lwlib.h"
5 5
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 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) ? 1 : (assert_failed (__FILE__, __LINE__, #x), 0))
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) ? 1 : ((void) abort (), 0))