summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lisp/compiler-macros.lisp25
1 files changed, 13 insertions, 12 deletions
diff --git a/Lisp/compiler-macros.lisp b/Lisp/compiler-macros.lisp
index 2ed4b0d..2cb64c3 100644
--- a/Lisp/compiler-macros.lisp
+++ b/Lisp/compiler-macros.lisp
@@ -18,18 +18,19 @@
(in-package #:mulk.objective-cl)
-(defun selector-load-time-form (method-name)
- `(load-time-value (handler-case
- (find-selector ',method-name)
- (serious-condition ()
- (warn
- (make-condition 'simple-style-warning
- :format-control
- "~S designates an unknown ~
- method selector."
- :format-arguments
- (list ',method-name)))
- ',method-name))))
+(eval-when (:compile-toplevel :load-toplevel :execute)
+ (defun selector-load-time-form (method-name)
+ `(load-time-value (handler-case
+ (find-selector ',method-name)
+ (serious-condition ()
+ (warn
+ (make-condition 'simple-style-warning
+ :format-control
+ "~S designates an unknown ~
+ method selector."
+ :format-arguments
+ (list ',method-name)))
+ ',method-name)))))
;; Optimise constant method names away by converting them to selectors