From 1c7cc67778073fd802773390da55980702637547 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 20 May 2015 15:20:09 -0700 Subject: glapi: glX_proto_recv.py: Use a main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- src/mapi/glapi/gen/glX_proto_recv.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mapi/glapi') 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() -- cgit v1.2.3