chiark / gitweb /
optparse.lisp: Move `ignorable' declaration into the right place.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 20 Dec 2014 22:26:05 +0000 (22:26 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 20 Dec 2014 22:26:05 +0000 (22:26 +0000)
optparse.lisp

index 73d961932952c00be22783e30cb2040858027d16..a94912855e824fcc256c4766042050e06fce18f4 100644 (file)
@@ -447,8 +447,8 @@ (defmacro defopthandler (name (var &optional (arg (gensym)))
         (setf (get ',name 'opthandler) ',func)
         (defun ,func (,var ,arg ,@args)
           ,@docs ,@decls
+          (declare (ignorable ,arg))
           (with-locatives ,var
-            (declare (ignorable ,arg))
             ,@body))
         ',name))))