[igt-dev] [PATCH i-g-t 01/36] lib: Introduce main function macros with custom args

Daniel Vetter daniel at ffwll.ch
Fri May 24 18:14:46 UTC 2019


On Fri, May 24, 2019 at 04:50:52PM +0300, Arkadiusz Hiler wrote:
> On Thu, May 23, 2019 at 03:26:52PM +0300, Petri Latvala wrote:
> > Instead of using a custom main function and calling
> > igt_subtest_init_parse_opts / igt_simple_init_parse_opts, the _args
> > variants of igt_main and igt_simple_main take the relevant parameters
> > and pass them along to the correct init function.
> > 
> > Open-coding a custom main function is no longer necessary and not
> > recommended.
> > 
> > Signed-off-by: Petri Latvala <petri.latvala at intel.com>
> 
> For the whole series:
> 
> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
> 
> If you get bored again you can reformat all the long_options[] in a
> consistelnt manner :->

This is really awesome stuff, I like!
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the igt-dev mailing list