summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-03-04 22:55:33 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-03-04 22:55:33 +0100
commite6e947b18ce0b6a5f62523adade5d7ffaefbac59 (patch)
tree72e2d8e025938b1d8aaa751740e2adc606173be3
parentb450583841e5661383a2dff9408e23ea3e313b5a (diff)
Export DEFOBJCGENERIC and DEFOBJCMETHOD.
darcs-hash:215ba7f141aaf113da4111f9dc76b3a6e45e8321
-rw-r--r--Lisp/defpackage.lisp2
-rw-r--r--Lisp/method-definition.lisp4
2 files changed, 6 insertions, 0 deletions
diff --git a/Lisp/defpackage.lisp b/Lisp/defpackage.lisp
index 21bf284..234e3d0 100644
--- a/Lisp/defpackage.lisp
+++ b/Lisp/defpackage.lisp
@@ -48,6 +48,8 @@
#+(or) #:define-objc-union
#:define-objective-c-generic-function
#:define-objective-c-method
+ #:defobjcgeneric
+ #:defobjcmethod
;; Special variables
#:*trace-method-calls*
diff --git a/Lisp/method-definition.lisp b/Lisp/method-definition.lisp
index d97c2a8..7342c4a 100644
--- a/Lisp/method-definition.lisp
+++ b/Lisp/method-definition.lisp
@@ -75,6 +75,10 @@
,@body)))))))
+(defmacro defobjcgeneric (name lambda-list &body options)
+ `(define-objective-c-generic-function ,name ,lambda-list ,@options))
+
+
(defmacro define-objective-c-generic-function (name lambda-list &body options)
`(defgeneric ,name ,lambda-list
,@(unless (position :generic-function-class