Skip to content

Commit a2d3ba9

Browse files
committed
remove BLOCK from %%assert
1 parent ca39f5b commit a2d3ba9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/boot.lisp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@
585585
(defmacro print-unreadable-object ((object stream &key type identity) &body body)
586586
`(!print-unreadable-object (,object ,stream :type ,type :identity ,identity) ,@body))
587587

588+
#+nil
588589
(defmacro %%assert (test &optional ignore datum &rest args)
589590
(let ((value (gensym "ASSERT-VALUE"))
590591
(name (gensym "ASSERT-BLOCK")))
@@ -594,6 +595,11 @@
594595
(when (not ,value)
595596
(%%assert-error ',test ,datum ,@args))))))
596597

598+
(defmacro %%assert (test &optional ignore datum &rest args)
599+
(let ((value (gensym "ASSERT-VALUE")))
600+
`(let ((,value ,test))
601+
(when (not ,value)
602+
(jscl::%%assert-error ',test ,datum ,@args)))))
597603
#+jscl
598604
(defmacro assert (test &optional ignore datum &rest args)
599605
`(%%assert ,test ,ignore ,datum ,@args))

0 commit comments

Comments
 (0)