diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-09 14:19:23 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-05-22 11:31:27 -0700 |
commit | 6c4dcef6dc704156115b8d3ad19c3020663c7ffc (patch) | |
tree | ced8bf21d196f4eb82398388081d3bfe9a06974e /src/mapi/glapi | |
parent | fd5f1dd6c72e34a8f0522c4706cd5eec624e80cf (diff) | |
download | external_mesa3d-6c4dcef6dc704156115b8d3ad19c3020663c7ffc.zip external_mesa3d-6c4dcef6dc704156115b8d3ad19c3020663c7ffc.tar.gz external_mesa3d-6c4dcef6dc704156115b8d3ad19c3020663c7ffc.tar.bz2 |
glapi: gl_enums.py: use main() function for if __name__ == "__main__"
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_enums.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_enums.py b/src/mapi/glapi/gen/gl_enums.py index 927a68b..955f27d 100644 --- a/src/mapi/glapi/gen/gl_enums.py +++ b/src/mapi/glapi/gen/gl_enums.py @@ -211,9 +211,13 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): args = _parser() api_list = [gl_XML.parse_GL_API(args.input_file)] printer = PrintGlEnums() printer.Print(api_list) + + +if __name__ == '__main__': + main() |