diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-10 14:33:12 -0800 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-18 13:33:25 -0800 |
commit | ddd83fc3a8a0af72858f587f50008af34b36a062 (patch) | |
tree | 59414a59ed8061543c3501540edb17f742d07806 | |
parent | 3a01fd2ea8278cba7b1f11d4fe5e9c4dae5cf369 (diff) |
glapi: gl_gentable.py: use a main function
-rw-r--r-- | src/mapi/glapi/gen/gl_gentable.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_gentable.py b/src/mapi/glapi/gen/gl_gentable.py index b9d6d44e76..fcf2ee603d 100644 --- a/src/mapi/glapi/gen/gl_gentable.py +++ b/src/mapi/glapi/gen/gl_gentable.py @@ -200,10 +200,15 @@ 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, glX_XML.glx_item_factory()) printer.Print(api) + + +if __name__ == '__main__': + main() |