From 3694b4abbb7febb69622c940bb2599e56362ea06 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 31 May 2000 19:19:50 +0000 Subject: [PATCH] (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'. --- src/ChangeLog | 7 +++++++ src/lisp.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 95bfd00b509..cc88f58198a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2000-05-31 Gerd Moellmann + + * 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 * search.c (Fre_search_forward, Fre_search_backward) diff --git a/src/lisp.h b/src/lisp.h index d4f7aaa981a..8c78ba7edb3 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -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. */ -- 2.39.5