diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-05-20 15:20:09 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-05-22 11:31:28 -0700 |
commit | 1c7cc67778073fd802773390da55980702637547 (patch) | |
tree | 8305cfc5582b2eb3bc432bb95d2eae5bdcebd6c5 /src/mapi/glapi | |
parent | d986cb7c70db3b512f6ee0bbc95ba2565606c222 (diff) | |
download | external_mesa3d-1c7cc67778073fd802773390da55980702637547.zip external_mesa3d-1c7cc67778073fd802773390da55980702637547.tar.gz external_mesa3d-1c7cc67778073fd802773390da55980702637547.tar.bz2 |
glapi: glX_proto_recv.py: Use a main function
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mapi/glapi')
-rw-r--r-- | src/mapi/glapi/gen/glX_proto_recv.py | 7 |
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 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() |