From: Dylan Baker Date: Tue, 10 Feb 2015 18:57:08 +0000 (-0800) Subject: glapi: gl_apitemp.py: Use a main function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3317cea0488075f291744ebc4eaa48fc73d293de;p=mesa.git glapi: gl_apitemp.py: Use a main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- diff --git a/src/mapi/glapi/gen/gl_apitemp.py b/src/mapi/glapi/gen/gl_apitemp.py index 7647428b331..5e985a2ecac 100644 --- a/src/mapi/glapi/gen/gl_apitemp.py +++ b/src/mapi/glapi/gen/gl_apitemp.py @@ -317,10 +317,15 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): + """Main function.""" args = _parser() api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer = PrintGlOffsets(args.es) printer.Print(api) + + +if __name__ == '__main__': + main()