Re: pgsql: Rely on __func__ being supported

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pgsql: Rely on __func__ being supported
Дата
Msg-id 20220807174014.xuz7i47oi3ovgwgd@alvherre.pgsql
обсуждение исходный текст
Ответ на pgsql: Rely on __func__ being supported  (Andres Freund <andres@anarazel.de>)
Ответы Re: pgsql: Rely on __func__ being supported  (Andres Freund <andres@anarazel.de>)
Список pgsql-committers
On 2022-Aug-07, Andres Freund wrote:

> Rely on __func__ being supported
> 
> Previously we fell back to __FUNCTION__ and then NULL. As __func__ is in C99
> that shouldn't be necessary anymore.
> 
> Solution.pm defined HAVE_FUNCNAME__FUNCTION instead of
> HAVE_FUNCNAME__FUNC (originating in 4164e6636e2), as at some point in the past
> MSVC only supported __FUNCTION__. Our minimum version supports __func__.

I'd rather we keep PG_FUNCNAME_MACRO defined to __func__ ... it costs us
nothing.  Would anybody oppose that?

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/

Вложения

В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Trust a few system headers to stand on their own
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Rely on __func__ being supported