X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fearly-c.lisp;h=b313fcc4f34a54e3a9393c7d8784ca526a5299d8;hb=7f579b076a1fc54587538ead07e506e7f06f3fe8;hp=9d19a78db810e7f6f2a1dc44b4a23099905c03ad;hpb=a80a02aec71e15e1ae7bebd502399ab2b824d08b;p=sbcl.git diff --git a/src/compiler/early-c.lisp b/src/compiler/early-c.lisp index 9d19a78..b313fcc 100644 --- a/src/compiler/early-c.lisp +++ b/src/compiler/early-c.lisp @@ -230,7 +230,7 @@ the stack without triggering overflow protection.") (setf *debug-name-sharp* (make-debug-name-marker) *debug-name-ellipsis* (make-debug-name-marker)) -(defun debug-name (type thing) +(defun debug-name (type thing &optional context) (let ((*debug-name-punt* nil)) (labels ((walk (x) (typecase x @@ -257,7 +257,7 @@ the stack without triggering overflow protection.") x) (t (type-of x))))) - (let ((name (list type (walk thing)))) + (let ((name (list* type (walk thing) (when context (name-context))))) (when (legal-fun-name-p name) (bug "~S is a legal function name, and cannot be used as a ~ debug name." name))