|
From: | David Vrabel |
Subject: | Re: [lwip-devel] RFC: debug and asserts |
Date: | Tue, 04 Nov 2003 10:53:53 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
Zschocke, Florian wrote:
David Vrabel wrote on Tuesday, November 04, 2003 11:39 AM:#define LWIP_DEBUG(when, args) \ while(1) { \ if( when ) { /* debug message here */ } \ }That is already the case for the LWIP_DEBUG macro. And I would suggest not to use while(1). ;)
Ha! That's what you get for not thinking... do {...} while(0); perhaps? /me crawls into hole. David Vrabel -- David Vrabel, Design Engineer Arcom Tel: +44 (0)1223 411200 ext. 3233 Clifton Road Fax: +44 (0)1223 403400 Cambridge CB1 7EA E-mail: address@hidden UK Web: http://www.arcom.com/ _____________________________________________________________________ The message in this transmission is sent in confidence for the attention of the addressee only and should not be disclosed to any other party. Unauthorised recipients are requested to preserve this confidentiality. Please advise the sender if the addressee is not resident at the receiving end. This message has been checked for all viruses by MessageLabs Virus Control Centre.
[Prev in Thread] | Current Thread | [Next in Thread] |