glapi: gl_SPARC_asm.py: use main function
authorDylan Baker <baker.dylan.c@gmail.com>
Fri, 13 Feb 2015 23:54:17 +0000 (15:54 -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_SPARC_asm.py

index df7a039..fa6217e 100644 (file)
@@ -255,9 +255,14 @@ def _parser():
     return parser.parse_args()
 
 
-if __name__ == '__main__':
+def main():
+    """Main function."""
     args = _parser()
     printer = PrintGenericStubs()
 
     api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory())
     printer.Print(api)
+
+
+if __name__ == '__main__':
+    main()