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/mapi | |
parent | 79c4e595bce563d6075fed176c2256bf2e7e99a5 (diff) |
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/mapi')
-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 dbaafa71fd..0d58a8a291 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() |