summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/gen/gl_apitemp.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/glapi/gen/gl_apitemp.py')
-rw-r--r--src/mapi/glapi/gen/gl_apitemp.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_apitemp.py b/src/mapi/glapi/gen/gl_apitemp.py
index 7647428b331..5e985a2ecac 100644
--- a/src/mapi/glapi/gen/gl_apitemp.py
+++ b/src/mapi/glapi/gen/gl_apitemp.py
@@ -317,10 +317,15 @@ def _parser():
return parser.parse_args()
-if __name__ == '__main__':
+def main():
+ """Main function."""
args = _parser()
api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory())
printer = PrintGlOffsets(args.es)
printer.Print(api)
+
+
+if __name__ == '__main__':
+ main()