summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-02-10 14:33:12 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2015-02-18 13:33:25 -0800
commitddd83fc3a8a0af72858f587f50008af34b36a062 (patch)
tree59414a59ed8061543c3501540edb17f742d07806
parent3a01fd2ea8278cba7b1f11d4fe5e9c4dae5cf369 (diff)
glapi: gl_gentable.py: use a main function
-rw-r--r--src/mapi/glapi/gen/gl_gentable.py7
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()