Add declaration-level assertions for compile-time checks

Michael Paquier <michael@paquier.xyz>

Commit: f1f10a1ba9e17e606a7b217ccccdd3cc4d8cb771
Author: Michael Paquier <michael@paquier.xyz>
Date: 2020-02-03T05:48:42Z
Releases: 13.0
Add declaration-level assertions for compile-time checks

Those new assertions can be used at file scope, outside of any function
for compilation checks.  This commit provides implementations for C and
C++, and fallback implementations.

Author: Peter Smith
Reviewed-by: Andres Freund, Kyotaro Horiguchi, Dagfinn Ilmari Mannsåker,
Michael Paquier
Discussion: https://postgr.es/m/201DD0641B056142AC8C6645EC1B5F62014B8E8030@SYD1217

Files

Discussion