[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] RFC: debug and asserts
From: |
Jani Monoses |
Subject: |
Re: [lwip-devel] RFC: debug and asserts |
Date: |
Tue, 4 Nov 2003 12:34:56 +0200 |
> This is standard stuff but I've seen people forget it so...
>
> You need to wrap the if() {} in some dummy loop construct as otherwise
> you could mess up any else's that follow.
>
> e.g.,
>
> #define LWIP_DEBUG(when, args) \
> while(1) { \
> if( when ) { /* debug message here */ } \
> }
correct, actually this is the way the if is wrapped now I ommited that
for simplification..