summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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()