X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Ftarget-main.lisp;h=23bfb23c0c6e3e99fffd798e25fe864ed9ec0b32;hb=96b310113978665980a8d65ad5dd83deab05c28b;hp=b1c02300e013b051fef65848540653936ee879b5;hpb=85bc4001453f09c80c4b9662dd5cf23f0b1fbaed;p=sbcl.git diff --git a/src/compiler/target-main.lisp b/src/compiler/target-main.lisp index b1c0230..23bfb23 100644 --- a/src/compiler/target-main.lisp +++ b/src/compiler/target-main.lisp @@ -76,7 +76,8 @@ :name name :path '(original-source-start 0 0)))))) -(defun compile (name &optional (definition (fdefinition name))) +(defun compile (name &optional (definition (or (macro-function name) + (fdefinition name)))) #!+sb-doc "Coerce DEFINITION (by default, the function whose name is NAME) to a compiled function, returning (VALUES THING WARNINGS-P FAILURE-P),