diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-10 14:33:12 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-05-22 11:31:27 -0700 |
commit | 5998d32f09777b9bbcd422dfbab9261f1b0e07b8 (patch) | |
tree | e500691bd589c0633b2a309bde7c6b95cff2c8dd /src | |
parent | d36fa4472ea408eb2a1ecadc44268bce4bab92ea (diff) | |
download | external_mesa3d-5998d32f09777b9bbcd422dfbab9261f1b0e07b8.zip external_mesa3d-5998d32f09777b9bbcd422dfbab9261f1b0e07b8.tar.gz external_mesa3d-5998d32f09777b9bbcd422dfbab9261f1b0e07b8.tar.bz2 |
glapi: gl_gentable.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_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 5ef5a75..1b3eb72 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() |