Skip to content

Commit

Permalink
compile-when all the situations for match1 macro
Browse files Browse the repository at this point in the history
  • Loading branch information
macrologist committed Jul 17, 2023
1 parent e2baa71 commit 1b08d6d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions library/pseq.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
;;;

;;; Private utility macro for convenient matching of a single case of a ADT
(cl:defmacro match1 (pattern form cl:&body body)
`(match ,form
(,pattern ,@body)
(_ (unreachable))))
(cl:eval-when (:compile-toplevel :load-toplevel :execute)
(cl:defmacro match1 (pattern form cl:&body body)
`(match ,form
(,pattern ,@body)
(_ (unreachable)))))

(coalton-toplevel

Expand Down

0 comments on commit 1b08d6d

Please sign in to comment.