Re: Assert for frontend programs? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Assert for frontend programs?
Date
Msg-id 7798.1355522615@sss.pgh.pa.us
Whole thread Raw
In response to Re: Assert for frontend programs?  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Assert for frontend programs?
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> On 12/14/12 11:33 AM, Tom Lane wrote:
>> Works for me.  So just rename that to Assert() and move it into
>> postgres-fe.h?

> Or just call assert() and don't invent our own layer?

Having the layer is a good thing, eg so that USE_ASSERT_CHECKING
can control it, or so that somebody can inject a different behavior
if they want.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Makefiles don't seem to remember to rebuild everything anymore
Next
From: Josh Berkus
Date:
Subject: Re: Switching timeline over streaming replication