diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-05-20 11:49:40 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-05-22 11:31:28 -0700 |
commit | 67d3ec0bb8f6a8c918b371ed03ef21814899f07d (patch) | |
tree | 0692af5689184eb135e451a16d8d678ab8e429de /src | |
parent | 79c4e595bce563d6075fed176c2256bf2e7e99a5 (diff) | |
download | external_mesa3d-67d3ec0bb8f6a8c918b371ed03ef21814899f07d.zip external_mesa3d-67d3ec0bb8f6a8c918b371ed03ef21814899f07d.tar.gz external_mesa3d-67d3ec0bb8f6a8c918b371ed03ef21814899f07d.tar.bz2 |
glapy: gl_genexec.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')
-rw-r--r-- | src/mapi/glapi/gen/gl_genexec.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_genexec.py b/src/mapi/glapi/gen/gl_genexec.py index dbaafa7..0d58a8a 100644 --- a/src/mapi/glapi/gen/gl_genexec.py +++ b/src/mapi/glapi/gen/gl_genexec.py @@ -218,8 +218,13 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): + """Main function.""" args = _parser() printer = PrintCode() api = gl_XML.parse_GL_API(args.filename) printer.Print(api) + + +if __name__ == '__main__': + main() |