Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defmacro when (condition &body body)
- (let ((forced-condition (gensym "FORCED-CONDITION")))
- `(let ((,forced-condition ,condition))
- (funcall
- (catch ,forced-condition
- (catch 'nil
- (throw ,forced-condition
- (lambda () ,@body)))
- (lambda () nil))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement