From: Mike Frysinger Date: Wed, 22 Jun 2011 18:08:07 -0400 Subject: [U-Boot] [PATCH] Add assert() for debug assertions In-Reply-To: <20110622215649.BBB0D17E88A5@gemini.denx.de> References: <1308776689-28115-1-git-send-email-sjg@chromium.org> <201106221723.27679.vapier@gentoo.org> <20110622215649.BBB0D17E88A5@gemini.denx.de> Message-ID: <201106221808.08862.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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