From 5998d32f09777b9bbcd422dfbab9261f1b0e07b8 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 10 Feb 2015 14:33:12 -0800 Subject: [PATCH] glapi: gl_gentable.py: use a main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- src/mapi/glapi/gen/gl_gentable.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_gentable.py b/src/mapi/glapi/gen/gl_gentable.py index 5ef5a75fc17..1b3eb72470d 100644 --- a/src/mapi/glapi/gen/gl_gentable.py +++ b/src/mapi/glapi/gen/gl_gentable.py @@ -200,10 +200,15 @@ 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, glX_XML.glx_item_factory()) printer.Print(api) + + +if __name__ == '__main__': + main() -- 2.30.2