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

From Tom Lane
Subject Re: elog with automatic file, line, and function
Date
Msg-id 2815.985229663@sss.pgh.pa.us
Whole thread Raw
In response to Re: elog with automatic file, line, and function  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane writes:
>> #define ELOG(ARGS)  (elog_setloc(__FILE__, __LINE__), elog ARGS)

> Would the first function save the data in global variables?

Yes, that's what I was envisioning.  Not a super clean solution,
but workable, and better than requiring varargs macros.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: RELEASE STOPPER? nonportable int64 constants in pg_crc.c
Next
From: Tom Lane
Date:
Subject: Re: Call for platforms