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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor compile-time assertion checks in c.h
Date: 2020-03-13 06:12:02
Message-ID: E1jCdYA-00051Q-HX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2020-03-13 12:31:44 pgsql: Preserve replica identity index across ALTER TABLE rewrite
Previous Message Thomas Munro 2020-03-12 05:20:04 pgsql: Fix nextXid tracking bug on standbys (9.5-11 only).