diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-10 10:57:08 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-05-22 11:31:27 -0700 |
commit | 3317cea0488075f291744ebc4eaa48fc73d293de (patch) | |
tree | 9314e98ba38d44c5d60c293e758ccee8c496d477 /src/mapi/glapi | |
parent | 24ec03bd05153bf0c8b1063d4e6a68b073e57840 (diff) | |
download | external_mesa3d-3317cea0488075f291744ebc4eaa48fc73d293de.zip external_mesa3d-3317cea0488075f291744ebc4eaa48fc73d293de.tar.gz external_mesa3d-3317cea0488075f291744ebc4eaa48fc73d293de.tar.bz2 |
glapi: gl_apitemp.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/gl_apitemp.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_apitemp.py b/src/mapi/glapi/gen/gl_apitemp.py index 7647428..5e985a2 100644 --- a/src/mapi/glapi/gen/gl_apitemp.py +++ b/src/mapi/glapi/gen/gl_apitemp.py @@ -317,10 +317,15 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): + """Main function.""" args = _parser() api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer = PrintGlOffsets(args.es) printer.Print(api) + + +if __name__ == '__main__': + main() |