From f2e78bd697e168c4f8cb1fd7f939713f8319eb78 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 12 Feb 2015 14:05:46 -0800 Subject: [PATCH] glapi: gl_x86-64_asm.py: Use a main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- src/mapi/glapi/gen/gl_x86-64_asm.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_x86-64_asm.py b/src/mapi/glapi/gen/gl_x86-64_asm.py index 018896403d5..cf42371f8c3 100644 --- a/src/mapi/glapi/gen/gl_x86-64_asm.py +++ b/src/mapi/glapi/gen/gl_x86-64_asm.py @@ -302,9 +302,14 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): + """Main file.""" args = _parser() printer = PrintGenericStubs() api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer.Print(api) + + +if __name__ == '__main__': + main() -- 2.30.2