Re: Portable StaticAssertExpr - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: Portable StaticAssertExpr
Date
Msg-id CAGECzQRT+A01kJ2n3ww7oBWw6d1sf-vGnqbJ0em7jQTrwLC1=A@mail.gmail.com
Whole thread
In response to Portable StaticAssertExpr  (Peter Eisentraut <peter@eisentraut.org>)
Responses Re: Portable StaticAssertExpr
List pgsql-hackers
On Mon, 23 Feb 2026 at 08:00, Peter Eisentraut <peter@eisentraut.org> wrote:
> In this patch, I'm proposing a different implementation that doesn't
> require nonstandard extensions.

I tried this out in one of my WIP patches for for better C++ and it
works correctly indeed.

Small nit, instead of nesting ifdefs. I think this looks a bit nicer:

# ifdef __cplusplus
...
#elif !defined(_MSC_VER) || _MSC_VER >= 1933
...
#else
...
#endif



pgsql-hackers by date:

Previous
From: Soumya S Murali
Date:
Subject: Re: support create index on virtual generated column.
Next
From: Andrey Borodin
Date:
Subject: Re: [WiP] B-tree page merge during vacuum to reduce index bloat