From: Dylan Baker Date: Wed, 20 May 2015 18:49:40 +0000 (-0700) Subject: glapy: gl_genexec.py: use a main function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67d3ec0bb8f6a8c918b371ed03ef21814899f07d;p=mesa.git glapy: gl_genexec.py: use a main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- diff --git a/src/mapi/glapi/gen/gl_genexec.py b/src/mapi/glapi/gen/gl_genexec.py index dbaafa71fd7..0d58a8a2914 100644 --- a/src/mapi/glapi/gen/gl_genexec.py +++ b/src/mapi/glapi/gen/gl_genexec.py @@ -218,8 +218,13 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): + """Main function.""" args = _parser() printer = PrintCode() api = gl_XML.parse_GL_API(args.filename) printer.Print(api) + + +if __name__ == '__main__': + main()