summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2015-02-11 18:05:35 -0800
committerMatt Turner <[email protected]>2015-05-22 11:31:27 -0700
commit48924567994c43e734f97a4b9150e87fa72b6c11 (patch)
tree59d29bdd2603e614a69f18b2f751a2b2856eddcc /src/mapi/glapi
parentfc96122fb6450dd9b8c90dc5efb6bb0ab235fe0e (diff)
glapi: gl_x86_asm.py: use a main function
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_x86_asm.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_x86_asm.py b/src/mapi/glapi/gen/gl_x86_asm.py
index 86d45f26046..c0c7941ce10 100644
--- a/src/mapi/glapi/gen/gl_x86_asm.py
+++ b/src/mapi/glapi/gen/gl_x86_asm.py
@@ -227,9 +227,13 @@ def _parser():
return parser.parse_args()
-if __name__ == '__main__':
+def main():
args = _parser()
printer = PrintGenericStubs()
api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory())
printer.Print(api)
+
+
+if __name__ == '__main__':
+ main()