Use proper assert in lwlib
[sxemacs] / src / ui / lwlib / lwlib-internal.h
index 2817026..49cb179 100644 (file)
@@ -2,20 +2,7 @@
 #define INCLUDED_lwlib_internal_h_
 
 #include "lwlib.h"
-
-#ifdef USE_ASSERTIONS
-/* Highly dubious kludge */
-/*   (thanks, Jamie, I feel better now -- ben) */
-void assert_failed(const char *, int, const char *);
-# define abort() (assert_failed (__FILE__, __LINE__, "abort()"))
-# define assert(x) ((x) ? (void) 0 : assert_failed (__FILE__, __LINE__, #x))
-#else
-# ifdef DEBUG_XEMACS
-#  define assert(x) ((x) ? (void) 0 : (void) abort ())
-# else
-#  define assert(x)
-# endif
-#endif
+#include "sxe-utils.h"
 
 /* This represents a single widget within a widget tree.  All the
    widgets in a widget tree are chained through the `next' field.