#| -*-Scheme-*-
-$Id: fixart.scm,v 1.11 2003/02/25 20:35:26 cph Exp $
+$Id: fixart.scm,v 1.12 2003/02/25 20:37:28 cph Exp $
Copyright 1994,1996,1999,2000,2001,2003 Massachusetts Institute of Technology
(if (not (index-fixnum? object))
(error:wrong-type-argument object "index integer" caller)))
+(define (guarantee-limited-index-fixnum object limit caller)
+ (if (not (and (index-fixnum? object) (fix:< object limit)))
+ (error:wrong-type-argument object "limitied index integer" caller)))
+
(define-integrable (fix:<= x y)
(not (fix:> x y)))