#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.403 2001/12/23 17:20:59 cph Exp $
+$Id: runtime.pkg,v 14.404 2002/01/04 06:05:13 cph Exp $
Copyright (c) 1988-2001 Massachusetts Institute of Technology
environment-procedure-name
environment?
extend-interpreter-environment
+ guarantee-environment
ic-environment?
interpreter-environment?
make-null-interpreter-environment
#| -*-Scheme-*-
-$Id: uenvir.scm,v 14.50 2001/12/21 18:22:49 cph Exp $
+$Id: uenvir.scm,v 14.51 2002/01/04 06:05:21 cph Exp $
Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
(stack-ccenv? object)
(closure-ccenv? object)))
+(define (guarantee-environment object name)
+ (if (not (environment? object))
+ (illegal-environment object name)))
+
+(define (illegal-environment object name)
+ (error:wrong-type-argument object "environment" name))
+
(define (environment-has-parent? environment)
(cond ((system-global-environment? environment)
#f)
(error:bad-range-argument environment 'ENVIRONMENT-DEFINE-MACRO))
(else
(illegal-environment environment 'ENVIRONMENT-DEFINE-MACRO))))
-
-(define (illegal-environment object procedure)
- (error:wrong-type-argument object "environment" procedure))
\f
;;;; Global environment