summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/gen/gl_genexec.py
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2015-05-20 11:49:40 -0700
committerMatt Turner <[email protected]>2015-05-22 11:31:28 -0700
commit67d3ec0bb8f6a8c918b371ed03ef21814899f07d (patch)
tree0692af5689184eb135e451a16d8d678ab8e429de /src/mapi/glapi/gen/gl_genexec.py
parent79c4e595bce563d6075fed176c2256bf2e7e99a5 (diff)
glapy: gl_genexec.py: use a main function
Signed-off-by: Dylan Baker <[email protected]> Acked-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mapi/glapi/gen/gl_genexec.py')
-rw-r--r--src/mapi/glapi/gen/gl_genexec.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_genexec.py b/src/mapi/glapi/gen/gl_genexec.py
index dbaafa71fd7..0d58a8a2914 100644
--- a/src/mapi/glapi/gen/gl_genexec.py
+++ b/src/mapi/glapi/gen/gl_genexec.py
@@ -218,8 +218,13 @@ 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)
printer.Print(api)
+
+
+if __name__ == '__main__':
+ main()