Make ASSERT pass along arguments to ERROR.
authorJoe Marshall <eval.apply@gmail.com>
Mon, 21 May 2012 18:10:40 +0000 (11:10 -0700)
committerJoe Marshall <eval.apply@gmail.com>
Mon, 21 May 2012 18:10:40 +0000 (11:10 -0700)
src/runtime/mit-macros.scm

index 5c29dd57e9b90d0495d683cc26d2c48fa5a16eb9..f8860fb5fef5f5cf9515d83e32e1de251e53c717 100644 (file)
@@ -604,6 +604,6 @@ USA.
 
 (define-syntax :assert
   (syntax-rules ()
-    ((ASSERT condition)
+    ((ASSERT condition . extra)
      (IF (NOT condition)
-         (ERROR "Assertion failed:" 'condition)))))
+         (ERROR "Assertion failed:" 'condition . extra)))))