]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/eval.c (clobbered_eassert): Check E's syntax.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Nov 2016 16:38:17 +0000 (08:38 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Nov 2016 16:38:51 +0000 (08:38 -0800)
src/eval.c

index 884e1ebfb89d1f11db8c4ec55f6161cd3759d3e8..bbc1518be54e67585a374916538805715d97e093 100644 (file)
@@ -1057,11 +1057,11 @@ usage: (catch TAG BODY...)  */)
   return internal_catch (tag, Fprogn, XCDR (args));
 }
 
-/* Assert that E is true, as a comment only.  Use this instead of
+/* Assert that E is true, but do not evaluate E.  Use this instead of
    eassert (E) when E contains variables that might be clobbered by a
    longjmp.  */
 
-#define clobbered_eassert(E) ((void) 0)
+#define clobbered_eassert(E) verify (sizeof (E) != 0)
 
 /* Set up a catch, then call C function FUNC on argument ARG.
    FUNC should return a Lisp_Object.