On 09/29/2011 09:29 PM, Peter Hutterer wrote:
> Using this call simplifies callers that don't know if the mask bit is set.
> 
> Before:
>   if (valuator_mask_isset(mask, valnum))
>     value = valuator_mask_get_double(mask, valnum));
>   else
>     value = someothervalue;
> 
> Now:
>  if (!valuator_mask_fetch_double(mask, valnum, &value))
>     value = someothervalue;
> 
> Signed-off-by: Peter Hutterer <[email protected]>

I think this will help clean up code all over :).

Reviewed-by: Chase Douglas <[email protected]>
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to