Function: assert

assert is a function alias for cl-assert, defined in cl-macs.el.gz.

This macro is obsolete since 27.1; use cl-assert instead.

Signature

(assert FORM &optional SHOW-ARGS STRING &rest ARGS)

Documentation

Verify that FORM returns non-nil; signal an error if not.

Second arg SHOW-ARGS means to include arguments of FORM in message. Other args STRING and ARGS... are arguments to be passed to error. They are not evaluated unless the assertion fails. If STRING is omitted, a default message listing FORM itself is used.

Aliases

assert (obsolete since 27.1)