mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-21 20:37:38 +00:00
(eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
This commit is contained in:
parent
9af3e74293
commit
3694b4abbb
2 changed files with 11 additions and 0 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2000-05-31 Gerd Moellmann <gerd@gnu.org>
|
||||
|
||||
* dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
|
||||
in #if 0.
|
||||
|
||||
* lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
|
||||
|
||||
2000-05-31 Jason Rumney <jasonr@gnu.org>
|
||||
|
||||
* search.c (Fre_search_forward, Fre_search_backward)
|
||||
|
|
|
|||
|
|
@ -69,11 +69,15 @@ extern void die P_((const char *, const char *, int));
|
|||
|
||||
/* Define an Emacs version of "assert", since some system ones are
|
||||
flaky. */
|
||||
#ifndef ENABLE_CHECKING
|
||||
#define eassert(X) (void) 0
|
||||
#else /* ENABLE_CHECKING */
|
||||
#if defined (__GNUC__) && __GNUC__ >= 2 && defined (__STDC__)
|
||||
#define eassert(cond) CHECK(cond,"assertion failed: " #cond)
|
||||
#else
|
||||
#define eassert(cond) CHECK(cond,"assertion failed")
|
||||
#endif
|
||||
#endif /* ENABLE_CHECKING */
|
||||
|
||||
/* Define the fundamental Lisp data structures. */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue