[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] [PATCH] Avoid dangling else problem
From: |
Roy Lee |
Subject: |
Re: [lwip-users] [PATCH] Avoid dangling else problem |
Date: |
Thu, 9 Apr 2009 22:02:23 +0800 |
Hi Rishi,
Thanks for reviewing the patch.
Hi Kieran,
I've submitted a revised patch to the savannah.
The same patch is also attached for reviewing.
Regards,
Roy
On Thu, Apr 9, 2009 at 7:15 PM, Rishi Khan <address@hidden> wrote:
> Roy,
> I think you need to drop the semicolons after the while(0). If I write
> this:
> if (blah) TCP_EVENT_ERR(errf,arg,err);
> else blah2;
>
> it will expand to:
> if (blah) do { \
> if((errf)) \
> (errf)((arg),(err)); \
> } while (0);;
> else blah2;
>
> Notice the double semicolon.
>
> Rishi
>
0001-Add-do-while-clauses-to-those-function-like-macros-i.patch
Description: Binary data