changeset 59870:d19236272855

Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-72 src/dispextern.h (xassert): Enable unconditionally. 2005-02-02 Miles Bader <miles@gnu.org> * src/dispextern.h (xassert): Enable unconditionally.
author Miles Bader <miles@gnu.org>
date Thu, 03 Feb 2005 03:56:00 +0000
parents 060b5be0c94a
children 83af8894e534
files src/ChangeLog src/dispextern.h
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Feb 03 02:19:15 2005 +0000
+++ b/src/ChangeLog	Thu Feb 03 03:56:00 2005 +0000
@@ -1,3 +1,7 @@
+2005-02-02  Miles Bader  <miles@gnu.org>
+
+	* dispextern.h (xassert): Enable unconditionally.
+
 2005-02-02  Kim F. Storm  <storm@cua.dk>
 
 	* undo.c (Fprimitive_undo): Fix dummy apply undo entry.
--- a/src/dispextern.h	Thu Feb 03 02:19:15 2005 +0000
+++ b/src/dispextern.h	Thu Feb 03 03:56:00 2005 +0000
@@ -1,5 +1,5 @@
 /* Interface definitions for display code.
-   Copyright (C) 1985,93,94,97,98,99, 2000,01,02,03, 2004
+   Copyright (C) 1985,93,94,97,98,99, 2000,01,02,03, 2004, 2005
      Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
@@ -123,12 +123,13 @@
 
 #if GLYPH_DEBUG
 #define IF_DEBUG(X)	X
-#define xassert(X)	do {if (!(X)) abort ();} while (0)
 #else
 #define IF_DEBUG(X)	(void) 0
-#define xassert(X)	(void) 0
 #endif
 
+/* Maybe move this inside the above `#ifdef GLYPH_DEBUG' for release.  */
+#define xassert(X)	do {if (!(X)) abort ();} while (0)
+
 /* Macro for displaying traces of redisplay.  If Emacs was compiled
    with GLYPH_DEBUG != 0, the variable trace_redisplay_p can be set to
    a non-zero value in debugging sessions to activate traces.  */