From: Dylan Baker Date: Mon, 9 Feb 2015 22:19:23 +0000 (-0800) Subject: glapi: gl_enums.py: use main() function for if __name__ == "__main__" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c4dcef6dc704156115b8d3ad19c3020663c7ffc;p=mesa.git glapi: gl_enums.py: use main() function for if __name__ == "__main__" Signed-off-by: Dylan Baker Acked-by: Matt Turner --- diff --git a/src/mapi/glapi/gen/gl_enums.py b/src/mapi/glapi/gen/gl_enums.py index 927a68b3e05..955f27d0818 100644 --- a/src/mapi/glapi/gen/gl_enums.py +++ b/src/mapi/glapi/gen/gl_enums.py @@ -211,9 +211,13 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): args = _parser() api_list = [gl_XML.parse_GL_API(args.input_file)] printer = PrintGlEnums() printer.Print(api_list) + + +if __name__ == '__main__': + main()