X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/3aab0efa423fe20713c8cc02e8aabdf7fe84056b..b70cb6d8704405cbb9281f823390f561c03de70c:/src/method-impl.lisp diff --git a/src/method-impl.lisp b/src/method-impl.lisp index db1e8d6..3857b46 100644 --- a/src/method-impl.lisp +++ b/src/method-impl.lisp @@ -147,11 +147,8 @@ (defmethod check-method-type ((method daemon-direct-method) (message sod-message) (type c-function-type)) (with-slots ((msgtype %type)) message - (unless (c-type-equal-p (c-type-subtype type) c-type-void) - (error "Method return type ~A must be `void'" (c-type-subtype type))) - (unless (argument-lists-compatible-p (c-function-arguments msgtype) - (c-function-arguments type)) - (error "Method arguments ~A don't match message ~A" type msgtype)))) + (check-method-return-type type c-type-void) + (check-method-argument-lists type msgtype))) (export 'delegating-direct-method) (defclass delegating-direct-method (basic-direct-method)