-
-
Save earl-ducaine/bce5e27248c806027b824e8162b381c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Dot notation (see how forms parameter is used in macro) | |
(defmacro with-my-error-handling-dot (context &body forms) | |
`(handler-bind | |
((error | |
(lambda (condition) | |
(my-error-handler ,context condition)))) | |
,.forms)) | |
;; At notation (see how forms parameter is used in macro) | |
(defmacro with-my-error-handling-at (context &body forms) | |
`(handler-bind | |
((error | |
(lambda (condition) | |
(my-error-handler ,context condition)))) | |
,@forms)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment