Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defmacro handler-bind* (bindings &body body)
- (expand-handler-binds bindings body))
- (eval-when (:compile-toplevel)
- (defun expand-handler-binds (bindings body)
- (let ((binding (first bindings)))
- (if binding
- `(handler-bind (,binding)
- ,(expand-handler-binds (rest bindings) body))
- `(progn ,@body)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement