Re: Portable StaticAssertExpr

From: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Portable StaticAssertExpr
Date: 2026-02-27 10:48:08
Message-ID: CAGECzQRT+A01kJ2n3ww7oBWw6d1sf-vGnqbJ0em7jQTrwLC1=A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 23 Feb 2026 at 08:00, Peter Eisentraut <peter(at)eisentraut(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-02-27 10:58:21 Re: Fix bug in multixact Oldest*MXactId initialization and access
Previous Message Soumya S Murali 2026-02-27 10:45:33 Re: support create index on virtual generated column.