Refactor compile-time assertion checks in c.h

Michael Paquier <michael@paquier.xyz>

Commit: b7f64c64d3262c309e2c5e8c11fd111b1dbd1a4a
Author: Michael Paquier <michael@paquier.xyz>
Date: 2020-03-13T06:04:11Z
Releases: 13.0
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

Files

PathChange+/−
src/include/c.h modified +11 −17

Discussion