]> asedeno.scripts.mit.edu Git - cl-protobufs.git/commitdiff
Make (declare (values ...)) for rpc methods opt-in, rather than opt-out
authorAlejandro R Sedeño <asedeno@google.com>
Sun, 3 Mar 2013 05:09:09 +0000 (00:09 -0500)
committerAlejandro R Sedeño <asedeno@google.com>
Sun, 3 Mar 2013 19:29:37 +0000 (14:29 -0500)
So far only CCL appears to consistently handle this.

define-proto.lisp

index 3e7e83cef4231a66faad3535d6912597568937fc..163cd8e6e66312b74aaeae4d254423c1bd8183b1 100644 (file)
               ;; response as an application object.
               (collect-form `(defgeneric ,client-fn (,vchannel ,vrequest &key ,vcallback)
                                ,@(and documentation `((:documentation ,documentation)))
-                               #-sbcl (declare (values ,output-type))
+                               #+(or ccl)
+                               (declare (values ,output-type))
                                (:method (,vchannel (,vrequest ,input-type) &key ,vcallback)
                                  (declare (ignorable ,vchannel ,vcallback))
                                  (let ((call (and *rpc-package* *rpc-call-function*)))
               ;; The RPC code provides the channel classes and does (de)serialization, etc
               (collect-form `(defgeneric ,server-fn (,vchannel ,vrequest)
                                ,@(and documentation `((:documentation ,documentation)))
-                               #-sbcl (declare (values ,output-type))))))))
+                               #+(or ccl)
+                               (declare (values ,output-type))))))))
       `(progn
          define-service
          ,service