1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-29 11:02:01 +00:00

(eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.

This commit is contained in:
Gerd Moellmann 2000-05-31 19:19:50 +00:00
parent 9af3e74293
commit 3694b4abbb
2 changed files with 11 additions and 0 deletions

View File

@ -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)

View File

@ -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. */