glapi: gl_x86-64_asm.py: Use a main function
authorDylan Baker <baker.dylan.c@gmail.com>
Thu, 12 Feb 2015 22:05:46 +0000 (14:05 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 22 May 2015 18:31:28 +0000 (11:31 -0700)
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
src/mapi/glapi/gen/gl_x86-64_asm.py

index 018896403d5910ee50603ae5a985328e03c0f6da..cf42371f8c3b8ea022866e4b4f423bffddd8b61b 100644 (file)
@@ -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()