projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix mips debug print argument handling.
[sbcl.git]
/
src
/
pcl
/
compiler-support.lisp
diff --git
a/src/pcl/compiler-support.lisp
b/src/pcl/compiler-support.lisp
index
f475943
..
3fe2083
100644
(file)
--- a/
src/pcl/compiler-support.lisp
+++ b/
src/pcl/compiler-support.lisp
@@
-47,6
+47,11
@@
(t
`(typep (layout-of object) 'sb-pcl::wrapper)))))
(t
`(typep (layout-of object) 'sb-pcl::wrapper)))))
+(defun sb-pcl::safe-code-p (&optional env)
+ (let* ((lexenv (or env (make-null-lexenv)))
+ (policy (lexenv-policy lexenv)))
+ (eql (cdr (assoc 'safety policy)) 3)))
+
(define-source-context defmethod (name &rest stuff)
(let ((arg-pos (position-if #'listp stuff)))
(if arg-pos
(define-source-context defmethod (name &rest stuff)
(let ((arg-pos (position-if #'listp stuff)))
(if arg-pos