|
From: | Bernhard 'Gustl' Bauer |
Subject: | Re: [lwip-users] LWIP_DEBUGF |
Date: | Mon, 20 Jul 2009 09:46:11 +0200 |
User-agent: | Thunderbird 2.0.0.22 (Windows/20090605) |
Mandeep Sandhu schrieb:
In order to insert all those lines in a #define you have to start it with something "do{" uses the least chars, and the compiler probably edits it out. In a non-debug scenario the line would just be: #define LWIP_DEBUGF(debug,x)I think simple brackets {} would doThat wouldn't always work. Have a look here: http://kernelnewbies.org/FAQ/DoWhile0 Though it's for linux kernelnewbies...but don't think it's specific to Linux. HTH, -mandeep
Ah, I didn't consider the if-then-else situation. Very informative. Thanks Gustl
[Prev in Thread] | Current Thread | [Next in Thread] |