[Mesa-dev] [PATCH 25/27] glapi: glX_proto_recv.py: Use a main function
Dylan Baker
baker.dylan.c at gmail.com
Wed May 20 18:03:22 PDT 2015
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
src/mapi/glapi/gen/glX_proto_recv.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/glX_proto_recv.py b/src/mapi/glapi/gen/glX_proto_recv.py
index dbc26a8..da468dc 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()
--
2.4.1
More information about the mesa-dev
mailing list