X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fsource-location.lisp;h=be1abd233a30d001278c63dcce581af4fd9f89ef;hb=3f3033a6c0ddf0af8dd1b5a17c2a4b82ea59b94f;hp=3d488d23c65ff5b6dc7424c7e9ebb55647d76d16;hpb=baee4b0e353648e6f3e7a5826f462fec95df1738;p=sbcl.git diff --git a/src/code/source-location.lisp b/src/code/source-location.lisp index 3d488d2..be1abd2 100644 --- a/src/code/source-location.lisp +++ b/src/code/source-location.lisp @@ -16,10 +16,11 @@ ;; Namestring of the source file that the definition was compiled from. ;; This is null if the definition was not compiled from a file. (namestring - (when (and (boundp '*source-info*) - *source-info*) - (make-file-info-namestring *compile-file-pathname* - (sb!c:get-toplevelish-file-info *source-info*))) + (or *source-namestring* + (when (and (boundp '*source-info*) + *source-info*) + (make-file-info-namestring *compile-file-pathname* + (sb!c:get-toplevelish-file-info *source-info*)))) :type (or string null)) ;; Toplevel form index (toplevel-form-number