From: Andrea Corallo Date: Mon, 14 Sep 2020 20:02:18 +0000 (+0200) Subject: * lisp/emacs-lisp/comp.el (comp-sp): Better style gv-setter declaration. X-Git-Tag: emacs-28.0.90~2727^2~439 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2da2ad29b83090950749f26a7375be4a67964438;p=emacs.git * lisp/emacs-lisp/comp.el (comp-sp): Better style gv-setter declaration. --- diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 831af3793ec..eceba777fa7 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -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.