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 [EMAIL PROTECTED] http://yi.org/peter-e/ ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://www.postgresql.org/search.mpl
- [HACKERS] elog with automatic file, line, and function Peter Eisentraut
- Re: [HACKERS] elog with automatic file, line, and fu... Tom Lane
- Re: [HACKERS] elog with automatic file, line, an... Ian Lance Taylor
- Re: [HACKERS] elog with automatic file, line... Tom Lane
- Re: [HACKERS] elog with automatic file, ... Larry Rosenman
- [HACKERS] Re: elog with automatic f... Pete Forman
- Re: [HACKERS] Re: elog with aut... Larry Rosenman
- Re: [HACKERS] elog with automatic file, line, an... Peter Eisentraut
- Re: [HACKERS] elog with automatic file, line, and fu... Neal Norwitz