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

From Andrew Dunstan
Subject Re: Assert for frontend programs?
Date
Msg-id 50CB99F8.9080308@dunslane.net
Whole thread Raw
In response to Re: Assert for frontend programs?  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On 12/14/2012 04:23 PM, Peter Eisentraut wrote:
> 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?


Well, part of the point is that it lets you use Assert() in code that 
might be run in both the frontend and the backend.

cheers

andrew



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Assert for frontend programs?
Next
From: Tom Lane
Date:
Subject: Re: Parser Cruft in gram.y