diff options
author | Dylan Baker <[email protected]> | 2015-02-10 10:57:08 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-05-22 11:31:27 -0700 |
commit | 3317cea0488075f291744ebc4eaa48fc73d293de (patch) | |
tree | 9314e98ba38d44c5d60c293e758ccee8c496d477 | |
parent | 24ec03bd05153bf0c8b1063d4e6a68b073e57840 (diff) |
glapi: gl_apitemp.py: Use a main function
Signed-off-by: Dylan Baker <[email protected]>
Acked-by: Matt Turner <[email protected]>
-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 7647428b331..5e985a2ecac 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() |