mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-24 07:11:38 -07:00
Improved assertion messages when a required keyword argument is not found. instead of "unreachable code", the assertion message is the name of the missing key.
Copied from Perforce Change: 187267 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
e185863a15
commit
66dfd1a69a
20 changed files with 122 additions and 126 deletions
|
|
@ -88,14 +88,14 @@ static mps_addr_t FormatDefaultClass(mps_addr_t object)
|
|||
|
||||
/* FormatCreate -- create a format */
|
||||
|
||||
ARG_DEFINE_KEY(fmt_align, Align);
|
||||
ARG_DEFINE_KEY(fmt_scan, Fun);
|
||||
ARG_DEFINE_KEY(fmt_skip, Fun);
|
||||
ARG_DEFINE_KEY(fmt_fwd, Fun);
|
||||
ARG_DEFINE_KEY(fmt_isfwd, Fun);
|
||||
ARG_DEFINE_KEY(fmt_pad, Fun);
|
||||
ARG_DEFINE_KEY(fmt_header_size, Size);
|
||||
ARG_DEFINE_KEY(fmt_class, Fun);
|
||||
ARG_DEFINE_KEY(FMT_ALIGN, Align);
|
||||
ARG_DEFINE_KEY(FMT_SCAN, Fun);
|
||||
ARG_DEFINE_KEY(FMT_SKIP, Fun);
|
||||
ARG_DEFINE_KEY(FMT_FWD, Fun);
|
||||
ARG_DEFINE_KEY(FMT_ISFWD, Fun);
|
||||
ARG_DEFINE_KEY(FMT_PAD, Fun);
|
||||
ARG_DEFINE_KEY(FMT_HEADER_SIZE, Size);
|
||||
ARG_DEFINE_KEY(FMT_CLASS, Fun);
|
||||
|
||||
Res FormatCreate(Format *formatReturn, Arena arena, ArgList args)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue