Re: Proposal: Add more compile-time asserts to exposeinconsistencies.

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Proposal: Add more compile-time asserts to exposeinconsistencies.
Дата
Msg-id 20190919010740.GC22307@paquier.xyz
обсуждение исходный текст
Ответ на Re: Proposal: Add more compile-time asserts to expose inconsistencies.  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
Ответы Re: Proposal: Add more compile-time asserts to exposeinconsistencies.  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
RE: Proposal: Add more compile-time asserts to exposeinconsistencies.  ("Smith, Peter" <peters@fast.au.fujitsu.com>)
Список pgsql-hackers
On Wed, Sep 18, 2019 at 04:46:30PM +0100, Dagfinn Ilmari Mannsåker wrote:
> Postgres doesn't seem to have it, but it would be possible to define a
> StaticAssertDecl macro that can be used at the file level, outside any
> function.  See for example Perl's STATIC_ASSERT_DECL:
>
> https://github.com/Perl/perl5/blob/v5.30.0/perl.h#L3455-L3488

That sounds like a cleaner alternative.  Thanks for the pointer.
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Smith, Peter"
Дата:
Сообщение: RE: Proposal: Add more compile-time asserts to exposeinconsistencies.
Следующее
От: David Steele
Дата:
Сообщение: Re: backup manifests