From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | elog with automatic file, line, and function |
Date: | 2001-03-19 23:10:43 |
Message-ID: | Pine.LNX.4.30.0103192356450.5764-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
It has been brought up that elog should be able to automatically fill in
the file, line, and perhaps the function name where it's called, to avoid
having to prefix each message with the function name by hand, which is
quite ugly.
This is doable, but it requires a C preprocessor that can handle varargs
macros. Since this is required by C99 and has been available in GCC for a
while, it *might* be okay to rely on this.
Additionally, C99 (and GCC for a while) would allow filling in the
function name automatically.
Since these would be mostly developer features, how do people feel about
relying on modern tools for implementing these? The bottom line seems to
be that without these tools it would simply not be possible.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-03-19 23:13:36 | Re: [HACKERS] src/test/regress/README duplicates SGML material |
Previous Message | Tom Lane | 2001-03-19 23:08:37 | Re: [HACKERS] src/test/regress/README duplicates SGML material |