summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2015-02-10 15:20:57 -0800
committerMatt Turner <[email protected]>2015-05-22 11:31:28 -0700
commit9097a4a103f2f7abf5af3e1056467c21051405ca (patch)
treeca4857b58a6d95e0863733896251181beda3b808 /src/mapi
parent9eed4e6232b9ca936ad8e87aa21f97ffb81981ce (diff)
glapi: glX_proto_send.py: use a main function.
Signed-off-by: Dylan Baker <[email protected]> Acked-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/glX_proto_send.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py
index ea766afe80a..2b3303078a2 100644
--- a/src/mapi/glapi/gen/glX_proto_send.py
+++ b/src/mapi/glapi/gen/glX_proto_send.py
@@ -1107,7 +1107,8 @@ def _parser():
return parser.parse_args()
-if __name__ == '__main__':
+def main():
+ """Main function."""
args = _parser()
if args.mode == "proto":
@@ -1121,3 +1122,7 @@ if __name__ == '__main__':
api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory())
printer.Print( api )
+
+
+if __name__ == '__main__':
+ main()