On Wed, Sep 2, 2009 at 2:30 PM, Bernd Petrovitsch <be...@firmix.at> wrote:

> On Wed, 2009-09-02 at 13:31 +0530, Anuz Pratap Singh Tomar wrote:
> > that part of code wont be executed.
>
> Please don't top-post.
>
> My mail client sucked, will take care. du'h!


> Then why not simply use "do { } while (0)" or similar?
>
> [
> > On Wed, Sep 2, 2009 at 1:24 PM, luca ellero <lro...@libero.it> wrote:
> [...]
> >         can someone please explain me the meaning/benefits of the "if
> >         (0)" statement?
>
#if 0 is equivalent to blank, this is done while preprocessing, this type of
macro is used commonly to define some sort of debug(print statement)
and if i am not wrong do{}while(0) will execute atleast once.

>
>
>        Bernd
> --
> Firmix Software GmbH                   http://www.firmix.at/
> mobil: +43 664 4416156                 fax: +43 1 7890849-55
>          Embedded Linux Development and Services
>
>
>

Reply via email to