tis 2009-02-24 klockan 14:38 +1300 skrev Amos Jeffries:
> #define HERE __FILE__<<"("<<__LINE__<<") "<<__FUNCTION__<<": "__func__ is the standardized name, at least in C (C99). > +#ifdef __PRETTY_FUNCTION__ > +#define MYNAME __PRETTY_FUNCTION__ << " " > +#else > +#define MYNAME __FUNCTION__ << " " > +#endif That should not work proper.. __PRETTY_FUNCTION__ is not a macro, it's a builtin variable name. See the GCC manual. Regards Henrik
