Refactor compile-time assertion checks for C/C++ - Mailing list pgsql-hackers

From Michael Paquier
Subject Refactor compile-time assertion checks for C/C++
Date
Msg-id 20200204081503.GF2287@paquier.xyz
Whole thread Raw
Responses Re: Refactor compile-time assertion checks for C/C++
Re: Refactor compile-time assertion checks for C/C++
List pgsql-hackers
Hi all,

As of [1], I have been playing with the compile time assertions that
we have for expressions, declarations and statements.  And it happens
that it is visibly possible to consolidate the fallback
implementations for C and C++.  Attached is the result of what I am
getting at.  I am adding this patch to next CF.  Thoughts are
welcome.

[1]: https://www.postgresql.org/message-id/201DD0641B056142AC8C6645EC1B5F62014B8E8030@SYD1217

Thanks,
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: pg_stat_progress_basebackup - progress reporting forpg_basebackup, in the server side
Next
From: Michael Paquier
Date:
Subject: Re: Add %x to PROMPT1 and PROMPT2