summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-02-13 15:54:17 -0800
committerMatt Turner <mattst88@gmail.com>2015-05-22 11:31:28 -0700
commit952bd305c6862113c60d3b62402fc5a32dbb65ca (patch)
tree929f738bb1ef797d099586dc7b1fb3615de43079 /src
parent86c9fb526ed9b0a68eb7bb29d661b7f61415d3f0 (diff)
downloadexternal_mesa3d-952bd305c6862113c60d3b62402fc5a32dbb65ca.zip
external_mesa3d-952bd305c6862113c60d3b62402fc5a32dbb65ca.tar.gz
external_mesa3d-952bd305c6862113c60d3b62402fc5a32dbb65ca.tar.bz2
glapi: gl_SPARC_asm.py: use main function
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mapi/glapi/gen/gl_SPARC_asm.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_SPARC_asm.py b/src/mapi/glapi/gen/gl_SPARC_asm.py
index df7a039..fa6217e 100644
--- a/src/mapi/glapi/gen/gl_SPARC_asm.py
+++ b/src/mapi/glapi/gen/gl_SPARC_asm.py
@@ -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()