[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: assert-h: Make static_assert work on Solaris 11.4
From: |
Bruno Haible |
Subject: |
Re: assert-h: Make static_assert work on Solaris 11.4 |
Date: |
Tue, 25 Oct 2022 22:11:09 +0200 |
Paul Eggert wrote:
> > Re: the ellipses. From
> > https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2264r3.html,
> > Section 8:
>
> Thanks. Although that sort of explains things, it doesn't explain why
> the latest draft uses ellipses only when NDEBUG is defined. Shouldn't
> ellipses also be used when NDEBUG is not defined?
That's exactly what the standard says in ยง 7.2.(2):
The assert macro shall be implemented as a macro with an ellipsis parameter,
not as an actual function.
Bruno
Re: assert-h: Make static_assert work on Solaris 11.4, Bruno Haible, 2022/10/25