Re: [PATCH 1/5] Centralize Assert* macros into c.h so its common between backend/frontend
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [PATCH 1/5] Centralize Assert* macros into c.h so its common between backend/frontend |
| Дата | |
| Msg-id | 21859.1357673106@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | [PATCH 1/5] Centralize Assert* macros into c.h so its common between backend/frontend (Andres Freund <andres@2ndquadrant.com>) |
| Ответы |
Re: [PATCH 1/5] Centralize Assert* macros into c.h so its common
between backend/frontend
|
| Список | pgsql-hackers |
Andres Freund <andres@2ndquadrant.com> writes:
> From: Andres Freund <andres@anarazel.de>
> c.h already had parts of the assert support (StaticAssert*) and its the shared
> file between postgres.h and postgres_fe.h. This makes it easier to build
> frontend programs which have to do the hack.
This patch seems unnecessary given that we already put a version of Assert()
into postgres_fe.h. I don't think that moving the two different
definitions into an #if block in one file is an improvement. If that
were an improvement, we might as well move everything in both postgres.h
and postgres_fe.h into c.h with a pile of #ifs.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера