]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/comp.el (comp-sp): Better style gv-setter declaration.
authorAndrea Corallo <akrl@sdf.org>
Mon, 14 Sep 2020 20:02:18 +0000 (22:02 +0200)
committerAndrea Corallo <akrl@sdf.org>
Mon, 14 Sep 2020 21:06:42 +0000 (23:06 +0200)
lisp/emacs-lisp/comp.el

index 831af3793ece3dc6231ac1cf9682fb575b1d7a05..eceba777fa7cfc93b9c84e082a702733a3dc3fe5 100644 (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.