[PATCH] xace: micro-optimize callbacks

Keith Packard keithp at keithp.com
Mon Oct 11 11:26:03 PDT 2010


On Mon, 11 Oct 2010 11:16:54 -0400, Adam Jackson <ajax at redhat.com> wrote:

> +#define CallCallbacks(x, y) \
> +    if ((*(x))) CallCallbacks(x, y);
> +

I know the patch is cute like this, but it seems like simply making
CallCallbacks an inline function would be cleaner.

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


More information about the xorg-devel mailing list