On Mon, 2002-10-28 at 11:28, Henrik Nordstrom wrote:
> On Monday 28 October 2002 00.44, Robert Collins wrote:
>
> > Even if we use the same syntax as for debug, we still need macro
> > varargs or something similar.
>
> Why?
>
> The debug() construct works quite fine as a varargs construct without
> the need of any macro varargs.. The only varargs construct is in the
> expanded result, not the macro arguments..
>
> debug(section, level)(format, ...) is C/C++ varargs, not a macro
> varargs.
>
> But without support for the the rather crucial __FUNCTION__ construct
> I do not see much point of this discussion in terms of a trace()
> macro.
Ah. __func__ is a C99 construct I believe.
Can you try that on the Sun compiler you had there?
Rob
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:17:01 MST