summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2015-05-20 15:20:09 -0700
committerMatt Turner <[email protected]>2015-05-22 11:31:28 -0700
commit1c7cc67778073fd802773390da55980702637547 (patch)
tree8305cfc5582b2eb3bc432bb95d2eae5bdcebd6c5 /src/mapi
parentd986cb7c70db3b512f6ee0bbc95ba2565606c222 (diff)
glapi: glX_proto_recv.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_recv.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/glX_proto_recv.py b/src/mapi/glapi/gen/glX_proto_recv.py
index dbc26a8eb03..da468dc5876 100644
--- a/src/mapi/glapi/gen/glX_proto_recv.py
+++ b/src/mapi/glapi/gen/glX_proto_recv.py
@@ -545,7 +545,8 @@ def _parser():
return parser.parse_args()
-if __name__ == '__main__':
+def main():
+ """Main function."""
args = _parser()
if args._mode == "dispatch_c":
@@ -557,3 +558,7 @@ if __name__ == '__main__':
args.filename, glX_proto_common.glx_proto_item_factory())
printer.Print(api)
+
+
+if __name__ == '__main__':
+ main()