diff options
| -rw-r--r-- | lisp/emacs-lisp/cl-preloaded.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/cl-preloaded.el b/lisp/emacs-lisp/cl-preloaded.el index 639ffa64b8c..2b022c49053 100644 --- a/lisp/emacs-lisp/cl-preloaded.el +++ b/lisp/emacs-lisp/cl-preloaded.el | |||
| @@ -44,9 +44,11 @@ | |||
| 44 | (define-error 'cl-assertion-failed (purecopy "Assertion failed")) | 44 | (define-error 'cl-assertion-failed (purecopy "Assertion failed")) |
| 45 | 45 | ||
| 46 | (defun cl--assertion-failed (form &optional string sargs args) | 46 | (defun cl--assertion-failed (form &optional string sargs args) |
| 47 | (if string | 47 | (if debug-on-error |
| 48 | (apply #'error string (append sargs args)) | 48 | (funcall debugger `(cl-assertion-failed ,form ,string ,@sargs)) |
| 49 | (signal 'cl-assertion-failed `(,form ,@sargs)))) | 49 | (if string |
| 50 | (apply #'error string (append sargs args)) | ||
| 51 | (signal 'cl-assertion-failed `(,form ,@sargs))))) | ||
| 50 | 52 | ||
| 51 | ;; When we load this (compiled) file during pre-loading, the cl--struct-class | 53 | ;; When we load this (compiled) file during pre-loading, the cl--struct-class |
| 52 | ;; code below will need to access the `cl-struct' info, since it's considered | 54 | ;; code below will need to access the `cl-struct' info, since it's considered |