Mercurial > emacs
comparison src/dispextern.h @ 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 | 40cb8cb02621 |
children | cd9e37256a95 3dcba0bc766b 72cf6261961e |
comparison
equal
deleted
inserted
replaced
59869:060b5be0c94a | 59870:d19236272855 |
---|---|
1 /* Interface definitions for display code. | 1 /* Interface definitions for display code. |
2 Copyright (C) 1985,93,94,97,98,99, 2000,01,02,03, 2004 | 2 Copyright (C) 1985,93,94,97,98,99, 2000,01,02,03, 2004, 2005 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GNU Emacs. | 5 This file is part of GNU Emacs. |
6 | 6 |
7 GNU Emacs is free software; you can redistribute it and/or modify | 7 GNU Emacs is free software; you can redistribute it and/or modify |
121 | 121 |
122 /* Macros to include code only if GLYPH_DEBUG != 0. */ | 122 /* Macros to include code only if GLYPH_DEBUG != 0. */ |
123 | 123 |
124 #if GLYPH_DEBUG | 124 #if GLYPH_DEBUG |
125 #define IF_DEBUG(X) X | 125 #define IF_DEBUG(X) X |
126 #define xassert(X) do {if (!(X)) abort ();} while (0) | |
127 #else | 126 #else |
128 #define IF_DEBUG(X) (void) 0 | 127 #define IF_DEBUG(X) (void) 0 |
129 #define xassert(X) (void) 0 | |
130 #endif | 128 #endif |
129 | |
130 /* Maybe move this inside the above `#ifdef GLYPH_DEBUG' for release. */ | |
131 #define xassert(X) do {if (!(X)) abort ();} while (0) | |
131 | 132 |
132 /* Macro for displaying traces of redisplay. If Emacs was compiled | 133 /* Macro for displaying traces of redisplay. If Emacs was compiled |
133 with GLYPH_DEBUG != 0, the variable trace_redisplay_p can be set to | 134 with GLYPH_DEBUG != 0, the variable trace_redisplay_p can be set to |
134 a non-zero value in debugging sessions to activate traces. */ | 135 a non-zero value in debugging sessions to activate traces. */ |
135 | 136 |