Re: how could I write this cpp macro
- From: Eric Sosman <Eric.Sosman@xxxxxxx>
- Date: Thu, 31 Aug 2006 14:47:47 -0400
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
.
- References:
- how could I write this cpp macro
- From: Bilgehan . Balban
- Re: how could I write this cpp macro
- From: L7
- how could I write this cpp macro
- Prev by Date: Re: Dinamically allocate array of array of structures
- Next by Date: Re: [newbie] strcpy, strtok and strcat problem...
- Previous by thread: Re: how could I write this cpp macro
- Next by thread: Re: how could I write this cpp macro
- Index(es):