| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Test most StaticAssert macros in C++ extensions |
| Date: | 2026-02-17 09:23:34 |
| Message-ID: | E1vsHIr-001FNr-0f@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Test most StaticAssert macros in C++ extensions
Most of the StaticAssert macros already worked in C++ with Clang and
GCC:(the only compilers we're currently testing C++ extension support
for). This adds a regression test for them in our test C++ extension,
so we can safely change their implementation without accidentally
breaking C++.
The only macros that StaticAssert macros that don't work yet are the
StaticAssertVariableIsOfType and StaticAssertVariableIsOfTypeMacro.
These will be added in a follow-on commit.
Author: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Discussion: https://www.postgresql.org/message-id/flat/CAGECzQR21OnnKiZO_1rLWO0-16kg1JBxnVq-wymYW0-_1cUNtg(at)mail(dot)gmail(dot)com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/451650eaacd5e482380f2b0e506fc81f5aa92fc7
Modified Files
--------------
src/test/modules/test_cplusplusext/test_cplusplusext.cpp | 5 +++++
1 file changed, 5 insertions(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2026-02-17 15:22:28 | pgsql: Ignore SIGINT in walwriter and walsummarizer |
| Previous Message | Thomas Munro | 2026-02-17 04:07:19 | pgsql: Fix test_valid_server_encoding helper function. |