aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispextern.h
diff options
context:
space:
mode:
authorDmitry Antipov2012-06-28 11:50:27 +0400
committerDmitry Antipov2012-06-28 11:50:27 +0400
commita54e2c050b9cf161cbccc3dd4628f8ef6b64f519 (patch)
tree447eb906b698dee37a17779ea15f448079b8f54b /src/dispextern.h
parent1c9bd87017e4b5f7f56e734277ff6e0a0ebb51d6 (diff)
downloademacs-a54e2c050b9cf161cbccc3dd4628f8ef6b64f519.tar.gz
emacs-a54e2c050b9cf161cbccc3dd4628f8ef6b64f519.zip
Generalize run-time debugging checks.
* configure.in (ENABLE_CHECKING): Update comment. * src/dispextern.h (XASSERTS): Remove. * src/fontset.c (xassert): Remove. Convert from xassert to eassert. * src/alloc.c: Convert from xassert to eassert. * src/bidi.c: Likewise. * src/dispnew.c: Likewise. * src/fns.c: Likewise. * src/fringe.c: Likewise. * src/ftfont.c: Likewise. * src/gtkutil.c: Likewise. * src/image.c: Likewise. * src/keyboard.c: Likewise. * src/menu.c: Likewise. * src/process.c: Likewise. * src/scroll.c: Likewise. * src/sound.c: Likewise. * src/term.c: Likewise. * src/w32console.c: Likewise. * src/w32fns.c: Likewise. * src/w32term.c: Likewise. * src/window.c: Likewise. * src/xdisp.c: Likewise. * src/xfaces.c: Likewise. * src/xfns.c: Likewise. * src/xselect.c: Likewise. * src/xterm.c: Likewise.
Diffstat (limited to 'src/dispextern.h')
-rw-r--r--src/dispextern.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index d541d181fbf..78f6db63cb7 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -128,13 +128,6 @@ enum window_part
128#define GLYPH_DEBUG 0 128#define GLYPH_DEBUG 0
129#endif 129#endif
130 130
131/* If XASSERTS is non-zero, additional consistency checks are activated.
132 Turn it off by defining the macro XASSERTS to zero. */
133
134#ifndef XASSERTS
135#define XASSERTS 0
136#endif
137
138/* Macros to include code only if GLYPH_DEBUG != 0. */ 131/* Macros to include code only if GLYPH_DEBUG != 0. */
139 132
140#if GLYPH_DEBUG 133#if GLYPH_DEBUG
@@ -143,12 +136,6 @@ enum window_part
143#define IF_DEBUG(X) (void) 0 136#define IF_DEBUG(X) (void) 0
144#endif 137#endif
145 138
146#if XASSERTS
147#define xassert(X) do {if (!(X)) abort ();} while (0)
148#else
149#define xassert(X) (void) 0
150#endif
151
152/* Macro for displaying traces of redisplay. If Emacs was compiled 139/* Macro for displaying traces of redisplay. If Emacs was compiled
153 with GLYPH_DEBUG != 0, the variable trace_redisplay_p can be set to 140 with GLYPH_DEBUG != 0, the variable trace_redisplay_p can be set to
154 a non-zero value in debugging sessions to activate traces. */ 141 a non-zero value in debugging sessions to activate traces. */