Use proper assert in lwlib
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 6 Dec 2015 21:54:49 +0000 (16:54 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 6 Dec 2015 21:54:49 +0000 (16:54 -0500)
* src/ui/lwlib/lwlib-internal.h: Include sxe-utils instead of
defining assert.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
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.