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 do

That 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



_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to