From 151612e91bb42d258f0754188ab8f5ce2a003501 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Mon, 3 Mar 2008 13:16:27 +0100 Subject: When compiling compiler macros, also define needed utility functions at compile-time. darcs-hash:6772d8a7995c6f19b5f6116e0adec26bfd6fe816 --- Lisp/compiler-macros.lisp | 25 +++++++++++++------------ 1 file 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 -- cgit v1.2.3