Re: elog with automatic file, line, and function - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: elog with automatic file, line, and function
Date
Msg-id Pine.LNX.4.30.0103212156130.1694-100000@peter.localdomain
Whole thread Raw
In response to Re: elog with automatic file, line, and function  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: elog with automatic file, line, and function
List pgsql-hackers
Tom Lane writes:

> Sure it is, it just requires a marginal increase in ugliness, namely
> double parentheses:
>
>     ELOG((level, format, arg1, arg2, ...))
>
> which might work like
>
> #define ELOG(ARGS)  (elog_setloc(__FILE__, __LINE__), elog ARGS)

Would the first function save the data in global variables?

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pgindent run?
Next
From: Bruce Momjian
Date:
Subject: Re: pgindent run?