From ae1bcdbaef5bb544b61ecd234d4054ea782c30b2 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Tue, 4 Mar 2008 15:52:39 +0100 Subject: Omit the selector argument when forwarding foreign invocations to generic functions. darcs-hash:d0e02549886461cd7837b70b70013be9e2ac507c --- Lisp/method-definition.lisp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lisp/method-definition.lisp b/Lisp/method-definition.lisp index 187da3c..0179ae8 100644 --- a/Lisp/method-definition.lisp +++ b/Lisp/method-definition.lisp @@ -121,7 +121,10 @@ `(defcallback ,callback-name ,(typespec->c-type return-type) ,cffi-lambda-list - (,(generic-function-name gf) ,@arguments))))) + (,(generic-function-name gf) + ;; Leave the second argument (the + ;; selector) out. + ,@(list* (car arguments) (cddr arguments))))))) (let ((callback (get-callback callback-name))) (with-foreign-object (arg-typestring-buffer :string (- (length arg-typestrings) 2)) -- cgit v1.2.3