Skip to content

Commit e387f74

Browse files
committed
Add duplicate transforms
1 parent 6b1c87a commit e387f74

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/lisp/kernel/lsp/numlib.lisp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,13 @@ specified bits of INTEGER2 with the specified bits of INTEGER1."
369369
(if size
370370
`(%deposit-field ,newbyte ,size ,position ,integer)
371371
whole))))
372+
373+
(defun %the-single (type value)
374+
(unless (typep value type)
375+
(error 'type-error :datum value :expected-type type))
376+
value)
377+
378+
(defun %the-single-return (type value return)
379+
(unless (typep value type)
380+
(error 'type-error :datum value :expected-type type))
381+
return)

0 commit comments

Comments
 (0)