]> git.eshelyaron.com Git - emacs.git/commit
Add an eassert back to XSYMBOL
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Jan 2024 04:34:03 +0000 (20:34 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jan 2024 16:55:03 +0000 (17:55 +0100)
commit64f425990488ff9b49a4322f7fb1c7801f109418
tree82e3909c5901cfaeb02226e600c76096abc8bd28
parent4025b57d6b6f945b6b021ea15fcbbe5a9f1c49f6
Add an eassert back to XSYMBOL

Problem reported by Alan Mackenzie in:
https://lists.gnu.org/r/emacs-devel/2024-01/msg00755.html
* src/lisp.h (XSYMBOL): If the arg is not a bare symbol, then
eassert (symbols_with_pos_enabled).  This shouldn’t affect code
generated for regular builds, and could catch caller errors in
debug builds.  For debug builds although this slows things down
XSYMBOL should still be faster than it was the day before
yesterday, as there’s still no need to eassert (SYMBOLP (a)).

(cherry picked from commit 088afa7e2f08f4eb4e39aae5db4faa33857bf544)
src/lisp.h