[U-Boot] [PATCH] Add assert() for debug assertions

Mike Frysinger vapier at gentoo.org
Thu Jun 23 00:08:07 CEST 2011


On Wednesday, June 22, 2011 17:56:49 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > the trouble with ifdef magic like this is that errors/warnings can be=20
> > introduced when DEBUG isnt defined, and then only noticed when DEBUG
> > is=20 defined.  so how about:
> > 
> > #ifdef DEBUG
> > # define _DEBUG 1
> > #else
> > # define _DEBUG 2
> 
> 1 and 2?  You don't happen to mean 1 and 0 ?

err, of course.  i had something semi-related on my mind as i banged that out.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110622/7ba9a38d/attachment.pgp 


More information about the U-Boot mailing list