|
From: | address@hidden |
Subject: | Re: [lwip-users] How do I define the LWIP_PLATFORM_DIAG |
Date: | Wed, 24 Aug 2011 19:40:22 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
narke wrote:
Have you bothered looking at the example ports in contrib? Seems like I can't repeat often enough that these ports are meant to be an example for people creating new ports :-)#define LWIP_PLATFORM_DIAG(message) do { printf(message); } while(0)
Both the unix and the win32 ports use this (note there are no brackets around the parameter to printf - these are already included in the macro parameter):
#define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0) Simon
[Prev in Thread] | Current Thread | [Next in Thread] |