Re: __FUNCTION__ and debug.

From: Robert Collins <robertc@dont-contact.us>
Date: 28 Oct 2002 11:41:11 +1100

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

Received on Sun Oct 27 2002 - 17:41:15 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:17:01 MST