Skip to content

Commit

Permalink
Fix executing extent guards
Browse files Browse the repository at this point in the history
  • Loading branch information
ruricolist committed May 5, 2024
1 parent d0bf1b3 commit 4e17457
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions defer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@
(-> execute-extent-guards (guarded-extent) (values &optional))
(defun execute-extent-guards (guarded-extent)
(nlet execute-extent-guards ((extent-guards (guarded-extent-guards guarded-extent)))
(unwind-protect
(execute-extent-guard (first extent-guards))
(execute-extent-guards (rest extent-guards))))
(when extent-guards
(unwind-protect
(execute-extent-guard (first extent-guards))
(execute-extent-guards (rest extent-guards)))))
(values))

(defmacro unwind-protect/without-interrupts (protected &body cleanup)
Expand Down

0 comments on commit 4e17457

Please sign in to comment.