Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2622b82

Browse files
committedFeb 27, 2019
Raise errors on 'assert'
1 parent 9cfd655 commit 2622b82

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎lisp/l/eusdebug.l

+3-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@
2323
*remote-port*
2424
remote-error reval *server-streams* remote-port))
2525

26-
(defmacro assert (pred &optional (message "") &rest args)
27-
`(while (not ,pred)
28-
(format *error-output* ,message ,@args)
29-
(finish-output *error-output*)
30-
(reploop "ass: " )))
26+
(defun assert (pred &optional (message "Assertation Error") &rest args)
27+
(if (not pred)
28+
(apply #'error message args)))
3129

3230
(defun warning-message (color format &rest mesg)
3331
(format *error-output* "~C[3~Cm" #x1b (+ color 48))

0 commit comments

Comments
 (0)
Please sign in to comment.