summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-02-13 15:54:17 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2015-02-18 13:33:25 -0800
commitb5e8550724211cb06253d064561a13f8798bb8da (patch)
tree3bc134b32d553a09f611a7115a32b1d80b5e00a8
parent4d32734fe79095b38da422a66a58977dcb7f27ef (diff)
glapi: gl_SPARC_asm.py: use main function
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
-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 df7a039f51..fa6217e1b8 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()