pgsql: Refactor compile-time assertion checks in c.h - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Refactor compile-time assertion checks in c.h
Date
Msg-id E1jCdYA-00051Q-HX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Refactor compile-time assertion checks in c.h

This commit refactors and simplifies the definitions of StaticAssertStmt,
StaticAssertExpr and StaticAssertDecl.  By unifying the C and C++
fallback implementations, this reduces the number of different
implementations from four to three.

Author: Michael Paquier
Reviewed-by: Georgios Kokolatos, Tom Lane
Discussion: https://postgr.es/m/20200204081503.GF2287@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b7f64c64d3262c309e2c5e8c11fd111b1dbd1a4a

Modified Files
--------------
src/include/c.h | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Fix nextXid tracking bug on standbys (9.5-11 only).
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Preserve replica identity index across ALTER TABLE rewrite