[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PROPOSED 2/2] assert-h: prefer to ‘verify’
From: |
Bruno Haible |
Subject: |
Re: [PROPOSED 2/2] assert-h: prefer to ‘verify’ |
Date: |
Wed, 14 Sep 2022 08:04:57 +0200 |
Paul Eggert wrote:
> > # if (!defined static_assert \
> > - && __STDC_VERSION__ < 202311 && __cpp_static_assert < 201411)
> > + && __STDC_VERSION__ < 202311 \
> > + && __cpp_static_assert < 201411 && __GNUG__ < 6)
> > # define static_assert _Static_assert /* C11 requires this #define. */
> > # endif
>
> Thanks for the fix. Should I also install the attached patch, for
> consistency?
Yes, please. Since the only purpose of the
#include <assert.h>
#undef/**/assert
here is to get 'static_assert' working, and it works already in g++ ≥ 6,
the patch is correct.
Bruno
- [PROPOSED 0/2] static_assert and C23, Paul Eggert, 2022/09/12
- [PROPOSED 1/2] assert-h: static_assert is a keyword in C23, Paul Eggert, 2022/09/12
- [PROPOSED 2/2] assert-h: prefer to ‘verify’, Paul Eggert, 2022/09/12
- Re: [PROPOSED 2/2] assert-h: prefer to ‘verify’, Bruno Haible, 2022/09/14
- Re: [PROPOSED 2/2] assert-h: prefer to ‘verify’, Bruno Haible, 2022/09/14
- Re: [PROPOSED 2/2] assert-h: prefer to ‘verify’, Bruno Haible, 2022/09/14
- Re: [PROPOSED 0/2] static_assert and C23, Bruno Haible, 2022/09/13