- Timestamp:
- Dec 5, 2007, 5:46:50 AM (17 years ago)
- File:
-
- 1 edited
-
branches/working-0711/ccl/level-1/sysutils.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/working-0711/ccl/level-1/sysutils.lisp
r7624 r7823 303 303 304 304 305 ;This is like check-type, except it returns the value rather than setf'ing 306 ;anything, and so can be done entirely out-of-line. 307 (defun require-type (arg type) 308 (if (typep arg type) 309 arg 310 (%kernel-restart $xwrongtype arg type))) 305 ;;; This is like check-type, except it returns the value rather than setf'ing 306 ;;; anything, and so can be done entirely out-of-line. 307 (defun require-type (arg type) 308 (multiple-value-bind (win sure) 309 (ctypep arg (specifier-type type)) 310 (if (or win (not sure)) 311 arg 312 (%kernel-restart $xwrongtype arg type)))) 311 313 312 314 ;;; Might want to use an inverted mapping instead of (satisfies ccl::obscurely-named)
Note:
See TracChangeset
for help on using the changeset viewer.
