lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] setting debug and assert messages


From: Simon Goldschmidt
Subject: Re: [lwip-users] setting debug and assert messages
Date: Tue, 26 Jul 2011 14:54:02 +0200

rocco brandi <address@hidden> wrote:
> in the file cc.h I set the macros like that:
> 
> #define LWIP_PLATFORM_ASSERT(x)  printf(x)
> 
> #define LWIP_PLATFORM_DIAG(x)  printf(x)

There *are* examples for this, e.g. in the win32 port in contrib:

/* Plaform specific diagnostic output */
#define LWIP_PLATFORM_DIAG(x)   do { printf x; } while(0)

#define LWIP_PLATFORM_ASSERT(x) do { printf("Assertion \"%s\" failed at line %d 
in %s\n", \
                                     x, __LINE__, __FILE__); fflush(NULL); 
abort(); } while(0)


Simon
-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!               
Jetzt informieren: http://www.gmx.net/de/go/freephone



reply via email to

[Prev in Thread] Current Thread [Next in Thread]