[Intel-gfx] [igt-dev] [PATCH i-g-t 07/21] gem_wsim: Factor out common error handling

Chris Wilson chris at chris-wilson.co.uk
Fri May 10 13:15:55 UTC 2019


Quoting Tvrtko Ursulin (2019-05-08 13:10:44)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> There is a repeated pattern with error handling which can be moved to a
> macro to for better readability in the command parsing loop.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Bah, at the cost of including control-flow buried inside the macro.
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the Intel-gfx mailing list