Ignore:
Timestamp:
Aug 16, 2009, 9:29:35 PM (10 years ago)
Author:
gb
Message:

Use the new support for null parameters to completely ignore the
invisible _CMD argument in the callbacks established by OBJC:DEFMETHOD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/objc-bridge/objc-runtime.lisp

    r12482 r12592  
    29382938           (struct-return-size nil)
    29392939           (selector nil)
    2940            (cmd (intern "_CMD"))
    29412940           (class-p nil)
    29422941           (objc-class-name nil))
     
    29582957            (arglist struct-return-var)))
    29592958        (arg-types :<SEL>)
    2960         (arg-names cmd)
     2959        (arg-names nil)                 ;newfangled
    29612960        (dolist (arg other-args)
    29622961          (if (atom arg)
     
    30283027                 ',(cddr arg-types))
    30293028                (defcallback ,impname ( :error-return (condition objc-callback-error-return) ,@(arglist))
    3030                   (declare (ignorable ,self-name ,cmd)
     3029                  (declare (ignorable ,self-name)
    30313030                           (unsettable ,self-name)
    30323031                           ,@(unless class-p `((type ,lisp-class-name ,self-name))))
Note: See TracChangeset for help on using the changeset viewer.