[PATCH] include: add BUG_RETURN_* macros

Keith Packard keithp at keithp.com
Wed May 9 22:05:51 PDT 2012


On Thu, 10 May 2012 14:25:25 +1000, Peter Hutterer <peter.hutterer at who-t.net> wrote:

> +#define BUG_RETURN(cond) \
> +        do { __BUG_WARN_MSG(cond, 0, NULL); return; } while(0)

I'm not a huge fan of macros hiding control flow...

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120509/35fa4d74/attachment.pgp>


More information about the xorg-devel mailing list