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

Chris Wilson
2019-05-10T13:15:55Z

Quoting Tvrtko Ursulin (2019-05-08 13:10:44)
> From: Tvrtko Ursulin <tvrtko.ursulin@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@intel.com>

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