[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
`assert' macro
From: |
Johan Bockgård |
Subject: |
`assert' macro |
Date: |
Fri, 27 Jan 2006 22:35:08 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
The `assert' macro from cl-macs is used in several files in Emacs. It
expands into the following code.
(macroexpand '(assert x))
=>
(progn (or x (signal 'cl-assertion-failed (list 'x))) nil)
Unless cl is loaded `cl-assertion-failed' is not a known error symbol
though, so if the assertion fails it will produce a "peculiar error"
that is impossible to catch. It should signal a known condition.
--
Johan Bockgård
- `assert' macro,
Johan Bockgård <=