Re: how could I write this cpp macro





L7 wrote On 08/31/06 13:58,:

#define pdebug(args...) do { \
printf ("%s:", __FUNCTION__); \
printf (args); \
} while (0);

Should do what you want.

Lose the final semicolon.

--
Eric.Sosman@xxxxxxx

.