summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2015-02-09 14:19:23 -0800
committerMatt Turner <[email protected]>2015-05-22 11:31:27 -0700
commit6c4dcef6dc704156115b8d3ad19c3020663c7ffc (patch)
treeced8bf21d196f4eb82398388081d3bfe9a06974e /src/mapi/glapi
parentfd5f1dd6c72e34a8f0522c4706cd5eec624e80cf (diff)
glapi: gl_enums.py: use main() function for if __name__ == "__main__"
Signed-off-by: Dylan Baker <[email protected]> Acked-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mapi/glapi')
-rw-r--r--src/mapi/glapi/gen/gl_enums.py6
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 927a68b3e05..955f27d0818 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()