1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-13 09:32:47 +00:00

* lisp/emacs-lisp/comp.el (comp-sp): Better style gv-setter declaration.

This commit is contained in:
Andrea Corallo 2020-09-14 22:02:18 +02:00
parent a3dc11e9cc
commit 2da2ad29b8

View File

@ -810,9 +810,9 @@ Points to the next slot to be filled.")
(defsubst comp-sp ()
"Current stack pointer."
(declare (gv-setter (lambda (val)
`(setf (comp-limplify-sp comp-pass) ,val))))
(comp-limplify-sp comp-pass))
(gv-define-setter comp-sp (value)
`(setf (comp-limplify-sp comp-pass) ,value))
(defmacro comp-with-sp (sp &rest body)
"Execute BODY setting the stack pointer to SP.