1 |
/* Interface definitions for display code. |
/* Interface definitions for display code. |
2 |
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 |
3 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Emacs. |
This file is part of GNU Emacs. |
123 |
|
|
124 |
#if GLYPH_DEBUG |
#if GLYPH_DEBUG |
125 |
#define IF_DEBUG(X) X |
#define IF_DEBUG(X) X |
|
#define xassert(X) do {if (!(X)) abort ();} while (0) |
|
126 |
#else |
#else |
127 |
#define IF_DEBUG(X) (void) 0 |
#define IF_DEBUG(X) (void) 0 |
|
#define xassert(X) (void) 0 |
|
128 |
#endif |
#endif |
129 |
|
|
130 |
|
/* Maybe move this inside the above `#ifdef GLYPH_DEBUG' for release. */ |
131 |
|
#define xassert(X) do {if (!(X)) abort ();} while (0) |
132 |
|
|
133 |
/* Macro for displaying traces of redisplay. If Emacs was compiled |
/* Macro for displaying traces of redisplay. If Emacs was compiled |
134 |
with GLYPH_DEBUG != 0, the variable trace_redisplay_p can be set to |
with GLYPH_DEBUG != 0, the variable trace_redisplay_p can be set to |
135 |
a non-zero value in debugging sessions to activate traces. */ |
a non-zero value in debugging sessions to activate traces. */ |