[cmucl-commit] CMUCL commit: src/code (ntrace.lisp)

Raymond Toy rtoy at common-lisp.net
Tue Feb 22 23:56:15 CET 2011


    Date: Tuesday, February 22, 2011 @ 17:56:15
  Author: rtoy
    Path: /project/cmucl/cvsroot/src/code

Modified: ntrace.lisp

Make the test for flet/labels functions more explicit.  We were
catching setf functions previously.


-------------+
 ntrace.lisp |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


Index: src/code/ntrace.lisp
diff -u src/code/ntrace.lisp:1.47 src/code/ntrace.lisp:1.48
--- src/code/ntrace.lisp:1.47	Tue Feb  1 10:35:00 2011
+++ src/code/ntrace.lisp	Tue Feb 22 17:56:15 2011
@@ -5,7 +5,7 @@
 ;;; Carnegie Mellon University, and has been placed in the public domain.
 ;;;
 (ext:file-comment
-  "$Header: /project/cmucl/cvsroot/src/code/ntrace.lisp,v 1.47 2011-02-01 15:35:00 rtoy Exp $")
+  "$Header: /project/cmucl/cvsroot/src/code/ntrace.lisp,v 1.48 2011-02-22 22:56:15 rtoy Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -515,7 +515,8 @@
 	(unless named
 	  (error (intl:gettext "Can't use encapsulation to trace anonymous function ~S.")
 		 fun))
-	(when (listp function-or-name)
+	(when (and (listp function-or-name)
+		   (member function-or-name '(flet labels)))
 	  (error (intl:gettext "Can't use encapsulation to trace local flet/labels function ~S.")
 		 function-or-name))
 	(fwrap function-or-name #'trace-fwrapper :type 'trace


More information about the cmucl-commit mailing list