gnu.gcc.help
[Top] [All Lists]

Re: Reference for new pedantic error?

Subject: Re: Reference for new pedantic error?
From: "Armel Asselin"
Date: Fri, 16 Jun 2006 14:19:40 +0200
Newsgroups: gnu.gcc.help
> do {
>  printf("This is a string\n");
> } while(0);

the do { } while(0) macro as another BIG advantage: you can easily use it 
inside if ( ) MACRO; else instr; notation this is the reason why most of the 
macros which contains tests are turned into this construction

Armel



<Prev in Thread] Current Thread [Next in Thread>