Add an eassert back to XSYMBOL
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Jan 2024 04:34:03 +0000 (20:34 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Jan 2024 05:13:39 +0000 (21:13 -0800)
commit088afa7e2f08f4eb4e39aae5db4faa33857bf544
tree9724b9ec1ad7141ff592e0323ae38c244ce7c3c1
parentdf7c6211cb960b88bc0aaef85babf7e9384d5f2e
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)).
src/lisp.h