Skip to content

Commit

Permalink
Raise errors on 'assert'
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Feb 27, 2019
1 parent 9cfd655 commit 2622b82
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lisp/l/eusdebug.l
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
*remote-port*
remote-error reval *server-streams* remote-port))

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

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

0 comments on commit 2622b82

Please sign in to comment.