all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* `assert' macro
@ 2006-01-27 21:35 Johan Bockgård
  2006-01-29 19:17 ` John Paul Wallington
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Bockgård @ 2006-01-27 21:35 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-30 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-27 21:35 `assert' macro Johan Bockgård
2006-01-29 19:17 ` John Paul Wallington
2006-01-30 18:45   ` Richard M. Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.